Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.litellm-agent-platform.ai/llms.txt

Use this file to discover all available pages before exploring further.

Deletes an agent and stops any active sessions associated with it. Returns 404 if the agent does not exist.

Request

DELETE /api/v1/managed_agents/agents/{agent_id}
Headers
HeaderValue
AuthorizationBearer <MASTER_KEY>

Path parameters

agent_id
string
required
The unique ID of the agent to delete.

Response

Returns 204 No Content on success with no response body.

Example

curl -X DELETE "https://<your-platform-host>/api/v1/managed_agents/agents/agt_01j9xyz" \
  -H "Authorization: Bearer $MASTER_KEY"
{
  "error": "agent 'agt_01j9xyz' not found"
}