---
title: "Archive an agent (soft-delete)"
method: DELETE
path: "/api/v1/agents/{agentId}"
tags: ["Agents"]
---

# Archive an agent (soft-delete)

`DELETE /api/v1/agents/{agentId}`

Sets archivedAt on the agent and revokes the associated API key. Archived agents are excluded from list queries and cannot be updated.

## Path parameters

- `agentId` string, required

## Response `204`

Agent archived successfully.

---

[API](https://skmtc.net/humbleaf/apis/agentchain-prior-api.md) · [All operations](https://skmtc.net/humbleaf/apis/agentchain-prior-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/humbleaf/agentchain-prior-api/revisions/33dd194c5572/schema)
