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

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.graphlit.dev/api-guides/use-cases/conversations/conversation-delete.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
