Skip to content

Delete Session

beta.chat.delete(strsession_id, ChatDeleteParams**kwargs)
DELETE/api/v1/chat/{session_id}

Delete a session.

ParametersExpand Collapse
session_id: str
organization_id: Optional[str]
project_id: Optional[str]

Delete Session

import os
from llama_cloud import LlamaCloud

client = LlamaCloud(
    api_key=os.environ.get("LLAMA_CLOUD_API_KEY"),  # This is the default and can be omitted
)
client.beta.chat.delete(
    session_id="session_id",
)
Returns Examples