Skip to content

Delete Session

client.beta.chat.delete(stringsessionID, ChatDeleteParams { organization_id, project_id } params?, RequestOptionsoptions?): void
DELETE/api/v1/chat/{session_id}

Delete a session.

ParametersExpand Collapse
sessionID: string
params: ChatDeleteParams { organization_id, project_id }
organization_id?: string | null
project_id?: string | null

Delete Session

import LlamaCloud from '@llamaindex/llama-cloud';

const client = new LlamaCloud({
  apiKey: process.env['LLAMA_CLOUD_API_KEY'], // This is the default and can be omitted
});

await client.beta.chat.delete('session_id');
Returns Examples