Conversations
delete_conversation
Delete a conversation.
Parameters
conversation_id
str
The ID of the conversation to delete.
Returns
success
bool
requiredTrue 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.")
Was this page helpful?