cURL
curl --request DELETE \ --url https://ninjachat.ai/api/v1/sessions/{id} \ --header 'Authorization: Bearer <token>'
{ "deleted": true }
Permanently delete a session and its stored messages.
Documentation IndexFetch the complete documentation index at: https://docs.ninjachat.ai/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.ninjachat.ai/llms.txt
Use this file to discover all available pages before exploring further.
API key starting with nj_sk_
Session ID to delete.
Session deleted.