> For the complete documentation index, see [llms.txt](https://docs.graphlit.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.graphlit.dev/api-guides/use-cases/conversations/conversation-delete.md).

# 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)

```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');
```

***
