Delete an existing agent and its resources.
| Parameter | Type | Description |
|---|---|---|
id | string | Agent UUID |
| Field | Type | Default | Description |
|---|---|---|---|
force | boolean | false | Force delete even if agent has running tasks |
| Code | Description |
|---|---|
200 | Agent deleted successfully |
401 | Invalid authentication |
403 | AI Agents feature not enabled |
404 | Agent not found |
409 | Agent has running tasks (use force: true to override) |
force: true in the request body to delete anyway