Skip to content
brain.GitHub
Developer docs OPEN SOURCE
HTTP APIEndpoints

Delete a session

DELETE
/sessions/{id}

Settles execution, revokes executors, and removes local private state, events, native files and online checkpoints. A retained tombstone prevents restoration. Repeat after a failed cleanup; success means online cleanup completed. Independently retained backups follow their retention policy.

Authorization

bearer
headerAuthorizationBearer <token>

Path Parameters

id*string

Opaque session ID.

Length1 <= length <= 128

Response Body

Delete a session

application/json
  1. response
status*string
curl -X DELETE 'http://127.0.0.1:8080/sessions/string' \  -H 'Authorization: Bearer <BRAIN_TOKEN>'
{  "status": "string"}