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

# Delete Agent

> Permanently delete an agent and all associated data.

## Authentication

Requires JWT token or Platform API key via `Authorization: Bearer <token>` header.

<ParamField path="id" type="string" required>Agent UUID</ParamField>
<ParamField body="force" type="boolean" default="false">Force deletion even if the agent is currently active</ParamField>

## Example Request

```bash theme={null}
curl -X POST https://api.app.shinzo.ai/v1/agent/delete/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{}'
```

## Example Response

```json theme={null}
{
  "message": "Agent deleted successfully"
}
```

<Warning>
  This action is permanent and cannot be undone. All agent data -- including files, message history, MCP server access grants, and configuration -- will be permanently deleted.
</Warning>

## Force Delete

If the agent is currently active, you can force deletion by setting `force` to `true`:

```bash theme={null}
curl -X POST https://api.app.shinzo.ai/v1/agent/delete/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"force": true}'
```

## Status Codes

| Code  | Description                                      |
| ----- | ------------------------------------------------ |
| `200` | Agent deleted successfully                       |
| `401` | Unauthorized - invalid or missing authentication |
| `403` | AI Agents feature not enabled for your account   |
| `404` | Agent not found                                  |
