> ## Documentation Index
> Fetch the complete documentation index at: https://docs.diversion.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude Code session transcripts

> Install the Diversion plugin for Claude Code, stop it from recording, and delete the session transcripts it recorded.

The [Diversion plugin for Claude Code](https://github.com/DiversionCompany/diversion-claude) records the transcript of each Claude Code session and links it to your commits. You can delete these transcripts yourself in the Diversion web app. Your files and commits do not change.

> [!NOTE]
>
> This page is available on Diversion cloud. On a self-hosted install, contact support.

## Install the plugin

Before you start:

* Install Diversion, so that `dv` is on your `PATH`. See the [Quickstart](https://docs.diversion.dev/quickstart.md).
* Start Claude Code from your Diversion workspace folder, or a folder inside it.

Inside Claude Code, run:

```
/plugin marketplace add DiversionCompany/diversion-claude
/reload-plugins
/plugin install diversion@diversion
```

Then quit Claude Code (`/quit`) and start it again from your workspace folder:

```bash theme={null}
cd path/to/your/workspace
claude
```

## Stop recording

While the plugin is on, it records new sessions again. Turn it off before you delete, on each computer where you use it. Inside Claude Code, run:

```
/plugin disable diversion@diversion
```

To remove the plugin completely, run `/plugin uninstall diversion@diversion` instead. Then restart Claude Code, so that sessions that are already open stop recording too.

## Delete your transcripts

**1. Open Settings > AI**

Open [Settings > AI](https://app.diversion.dev/settings/ai) in the Diversion web app. The page shows **Delete Claude Code session transcripts**.

![The Settings > AI page with the Delete Claude Code session transcripts section](https://mintcdn.com/diversion-2/Y1WJqrkEuQn2Nale/images/claude-code-sessions/settings-ai.png?fit=max\&auto=format\&n=Y1WJqrkEuQn2Nale\&q=85\&s=845b0ea8c1062847808b034519eb47cb)

**2. Choose where to delete**

* Choose **All repositories** to delete every transcript you recorded.
* Or choose **Specific repositories**, then pick them in **Choose repositories**. Each repository shows how many sessions it has. You can choose up to 10 repositories in one request.

![The Choose repositories list with the number of sessions in each repository](https://mintcdn.com/diversion-2/Y1WJqrkEuQn2Nale/images/claude-code-sessions/choose-repositories.png?fit=max\&auto=format\&n=Y1WJqrkEuQn2Nale\&q=85\&s=c93f0b368c7f061635b4c7f0e425a93c)

**3. Delete**

Click **Delete sessions**, then **Delete** to confirm.

![The Delete Claude Code sessions dialog](https://mintcdn.com/diversion-2/Y1WJqrkEuQn2Nale/images/claude-code-sessions/confirm-dialog.png?fit=max\&auto=format\&n=Y1WJqrkEuQn2Nale\&q=85\&s=645ded3c8c609d66f32bfdbcd4a0a5d9)

**4. Wait for it to finish**

The page shows the progress while it deletes. When it is done, you see **Claude Code sessions deleted**. If you chose **All repositories**, the page then shows "You have no recorded Claude Code sessions."

If you see "The deletion stopped before it finished. Try again.", click **Delete sessions** again.

![The Settings > AI page after the deletion, with no recorded sessions](https://mintcdn.com/diversion-2/Y1WJqrkEuQn2Nale/images/claude-code-sessions/no-sessions.png?fit=max\&auto=format\&n=Y1WJqrkEuQn2Nale\&q=85\&s=f5756a7118515e3d14b7cfec9844d106)

> [!WARNING]
>
> You cannot undo the deletion.

## What gets deleted

* The deletion removes your recorded sessions, their transcripts, and their checkpoints in the repositories you chose.
* It applies to your Diversion account: it deletes the transcripts recorded on all your computers, with any Claude account.
* Other users' transcripts do not change.
* Your files and commits do not change, but your commits no longer show a transcript.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.