cURL
curl --request DELETE \ --url https://api.example.com/sessions/{session_id} \ --header 'Authorization: Bearer <token>'
{ "detail": "Bad request", "error_code": "BAD_REQUEST" }
Permanently delete a specific session and all its associated runs. This action cannot be undone and will remove all conversation history.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Session ID to delete
Database ID to use for deletion
Successful Response