---
title: "Delete an agent"
method: DELETE
path: "/api/agents/{agentId}"
tags: ["agents"]
---

# Delete an agent

`DELETE /api/agents/{agentId}`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/agents/{agentId}`
- Auth: none declared

Permanently deletes an agent

## Path parameters

- `agentId` string, uuid, required

## Response `200`

Agent deleted successfully

- object
  - `success` boolean
  - `message` string

## Other responses

- `202`: Agent deletion initiated
- `400`: Invalid agent ID format
- `404`: Agent not found
- `408`: Agent deletion operation timed out
- `409`: Cannot delete agent due to active references
- `500`: Error deleting agent

---

[API](https://skmtc.dev/elizaos/apis/eliza-os-api.md) - [All operations](https://skmtc.dev/elizaos/apis/eliza-os-api/llms.txt) - [OpenAPI document](https://skmtc.dev/elizaos/apis/eliza-os-api/revisions/d606a12682bb?raw)
