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

## Changes

- **2026-04-14** `0d3faa6ef2db` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/humbleaf/apis/agentchain-prior-api/changes/api/v1/agents/:agentId/delete.md)

---

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