Delete a conversation.

Parameters

conversation_id
str

The ID of the conversation to delete.

Returns

success
bool
required

True if the conversation was successfully deleted, False otherwise.

Example

Code Example
from chainlit.client.cloud import chainlit_client

conversation_id = "12345"

success = await chainlit_client.delete_conversation(conversation_id)

if success:
    print("Conversation deleted.")
else:
    print("Failed to delete conversation.")