Claude Platform Docs

Delete Session

$ ant beta:sessions delete
DELETE/v1/sessions/{session_id}

Delete Session

Parameters
--session-id: string

Path parameter session_id

--beta: optional array of AnthropicBeta

Optional header to specify the beta version(s) you want to use.

Returns
beta_managed_agents_deleted_session: object{ id, type }

Confirmation that a session has been permanently deleted.

id: string
type: "session_deleted"

Delete Session

ant beta:sessions delete \
  --api-key my-anthropic-api-key \
  --session-id sesn_011CZkZAtmR3yMPDzynEDxu7
{
  "id": "sesn_011CZkZAtmR3yMPDzynEDxu7",
  "type": "session_deleted"
}
Returns Examples
{
  "id": "sesn_011CZkZAtmR3yMPDzynEDxu7",
  "type": "session_deleted"
}