Skip to content
Letta Platform Letta Platform Letta Docs
Sign up

Delete Conversation

client.conversations.delete(stringconversationID, RequestOptionsoptions?): ConversationDeleteResponse
delete/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.

ParametersExpand Collapse
conversationID: string

The conversation identifier. Either the special value 'default' or an ID in the format 'conv-'

minLength1
maxLength41
ReturnsExpand Collapse
ConversationDeleteResponse = unknown
Delete Conversation
import Letta from '@letta-ai/letta-client';

const client = new Letta({
  apiKey: process.env['LETTA_API_KEY'], // This is the default and can be omitted
});

const conversation = await client.conversations.delete('default');

console.log(conversation);
{}
Returns Examples
{}