> ## 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.

<Info>
  Agent management features are available to workspace administrators.
</Info>

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](/en/using-langdock/agents/archive).

## Archive from Governance

Search for the agent in [Governance](/en/admin/governance/agents), 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 with **Restore agent**.

On dedicated deployments, archive from [Workspace Settings → Agents](https://app.langdock.com/settings/workspace/agents) on **All Agents** or **Verified**. The reason is required there as well. That table has no **Archived** tab. Restore from [Agents](/en/using-langdock/agents/archive) with **Restore agent**.

## 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. New and existing workspaces start with it on.
* **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](/en/admin/manage-agents/disable-agents) for the compliance flow.
