curl --request DELETE \
--url 'http://localhost:8000/agents/{agent_id}' \
--header "Authorization: Bearer $STATESET_AGENTS_API_KEY"
Delete a delete agent agents agent ID
Delete an agent and all associated conversations.
DELETE
/
agents
/
{agent_id}
curl --request DELETE \
--url 'http://localhost:8000/agents/{agent_id}' \
--header "Authorization: Bearer $STATESET_AGENTS_API_KEY"
Delete an agent and all associated conversations.
Path parameters
string
required
Response
No response body. Agent deleted successfully.Status codes
| Code | Meaning |
|---|---|
204 | Agent deleted successfully |
401 | Authentication required |
404 | Agent not found |
422 | Validation Error |
429 | Rate limit exceeded |
curl --request DELETE \
--url 'http://localhost:8000/agents/{agent_id}' \
--header "Authorization: Bearer $STATESET_AGENTS_API_KEY"
Last modified on August 31, 2026