Delete Conversation
conversations.delete(strconversation_id) -> object
/v1/conversations/{conversation_id}
Delete a conversation (soft delete).
This marks the conversation as deleted but does not permanently remove it from the database. The conversation will no longer appear in list operations. Any isolated blocks associated with the conversation will be permanently deleted.
Parameters
Returns
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(
"default",
)
print(conversation)
{}
Returns Examples
{}