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 a session and removes its sandbox Kubernetes resource. The session row is marked dead. This operation is idempotent — calling it on a session that is already dead or stopped succeeds without error.

Request

DELETE /api/v1/managed_agents/sessions/{session_id}
Headers
HeaderValue
AuthorizationBearer <MASTER_KEY>

Path parameters

session_id
string
required
The unique ID of the session to delete.

Response

Returns 204 No Content on success with no response body. Returns 404 if the session does not exist at all.

Example

curl -X DELETE "https://<your-platform-host>/api/v1/managed_agents/sessions/ses_01kabc" \
  -H "Authorization: Bearer $MASTER_KEY"
{
  "error": "session ses_01kabc not found"
}