Clear sessions
DELETE
/api/sessions
Code sample: Shell / cURL
curl --request DELETE \ --url http://127.0.0.1:8004/api/sessions \ --header 'Authorization: Bearer <token>'Kills every session and starts one fresh default session, as btmux clear-sessions does.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The single fresh session left
Media typeapplication/json
Array<object>
One entry per session for the StatusBar and the session picker.
object
Example
[ { "runtime": { "type": "local" } }]Missing or wrong access token
Media typetext/plain
string
The request’s Host or Origin isn’t allowed, or the caller can’t use this route (a guest token, or btmux connect)