> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langdock.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Archive Agents

> Archive agents from Governance without deleting them, and configure auto archive for unused agents.

> [!NOTE]
>
> Agent management features are available to workspace administrators.

Archive is cleanup. It takes an agent out of the active list without deleting it. Disable is the compliance action when an agent must not be used. Owners can also [archive agents they own](https://docs.langdock.com/en/using-langdock/agents/archive.md).

## Archive from Governance

Search for the agent in [Governance](https://docs.langdock.com/en/admin/governance/agents.md), then click **Archive agent**. Choose a reason, add a **Note (optional)** if you want context, and click **Archive**.

Reasons:

* **No longer used**
* **Replaced by another agent**
* **Duplicate**
* **Seasonal**
* **Other**

Open the **Archived** tab to find archived agents. Restore one with **Restore agent**, or select the agents, open **Bulk action**, and choose **Restore selected**.

## Auto archive unused agents

Workspace admins configure auto archive on [Workspace Settings → Agents](https://app.langdock.com/settings/workspace/products/agents#agents-archive-policy) under **Auto archive agents**.

* **Enable auto archive** turns the policy on or off. Turning it off clears the schedule for agents already scheduled for archive and removes the inbox notifications about them. New and existing workspaces start with it on. A workspace that is already off keeps those schedules until you turn the switch on and then off again.
* **Archive when unused for** sets the unused window: **1 month**, **3 months**, **6 months**, or **12 months**. The default is **3 months**.
* **Grace period** is the notice window after an agent is scheduled: **7 days**, **14 days**, or **30 days**. The default is **7 days**.

A nightly job checks when each agent was last run. Usage is a run of the agent in chat, Slack, Teams, API, a workflow, an automation, or as a subagent. Opening the agent in the list does not count.

When an agent is unused longer than the window, it is scheduled for archive. The owner and editors get an inbox notification. Using the agent during the grace period clears the schedule. If nobody uses it, the job archives it when grace ends.

The **Archived** tab in Governance shows **Automatically archive unused agents**. Click **Configure policy** to open the same settings.

## Archive vs Disable vs Delete

| Action | Use when |
| - | - |
| **Archive** | You want the agent out of the active list and still able to restore it |
| **Disable** | The agent must not be used until it is fixed and approved again |
| **Delete** | The agent should be removed permanently |

See [Disable Agents](https://docs.langdock.com/en/admin/manage-agents/disable-agents.md) for the compliance flow.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.