Skip to main content
Delete a session and all associated state: turns, items, memory fragments, and subagents. The operation is irreversible.

Endpoint

Authentication

Authorization: Bearer <api_key> or Authorization: ApiKey <api_key>.

Path parameters

string
required
Session identifier.

Response

string
Deleted session identifier.
string
Always agent.session.deleted.
boolean
Always true on success.

Example

Deleted sessions cannot be recovered. Archive with Update Session if you need to keep the transcript.