Skip to content
Letta Platform Letta Platform Letta Docs
Sign up

Delete Conversation

conversations.delete(strconversation_id) -> object
delete/v1/conversations/{conversation_id}

Delete a conversation.

The conversation will no longer appear in list operations.

ParametersExpand Collapse
conversation_id: str

The ID of the conv in the format 'conv-'

minLength41
maxLength41
ReturnsExpand Collapse
object
Delete Conversation
import os
from letta_client import Letta

client = Letta(
    api_key=os.environ.get("LETTA_API_KEY"),  # This is the default and can be omitted
)
conversation = client.conversations.delete(
    "conv-123e4567-e89b-42d3-8456-426614174000",
)
print(conversation)
{}
Returns Examples
{}