Delete Conversation

User Intent

"How do I delete a conversation? Show me conversation cleanup."

Operation

SDK Method: deleteConversation() Use Case: Remove conversation history


Code Example (TypeScript)

import { Graphlit } from 'graphlit-client';

const graphlit = new Graphlit();

// Delete conversation
await graphlit.deleteConversation('conversation-id');

console.log('Conversation deleted');

// Delete all conversations for cleanup
const conversations = await graphlit.queryConversations({});

await Promise.all(
  conversations.conversations.results.map(conv =>
    graphlit.deleteConversation(conv.id)
  )
);

console.log('All conversations deleted');

Last updated

Was this helpful?