Skip to main content
DELETE
/
ask
/
sessions
/
{id}
curl -X DELETE "https://api.bota.dev/v1/ask/sessions/as_abc123" \
  -H "Authorization: Bearer sk_live_..."
Permanently delete an AI Ask session and all of its messages. This operation is irreversible and idempotent.

Authentication

Requires an API key. The session is looked up within the key’s project; an unknown session returns 404. An end-user-scoped key can only delete its own sessions.
curl -X DELETE "https://api.bota.dev/v1/ask/sessions/as_abc123" \
  -H "Authorization: Bearer sk_live_..."

Path Parameters

id
string
required
Session identifier (as_*).

Response

Returns 204 No Content on success. The session’s messages are deleted along with it.