How do I delete a single conversation from my chat history?

Status Closed — not planned
Maintainer reply None cached
Activity 13 comments · opened Aug 19, 2025 · closed Feb 10, 2026

No description provided.

View original on GitHub ↗

13 Comments

github-actions[bot] · 1 year ago

Found 1 possible duplicate issue:

  1. https://github.com/anthropics/claude-code/issues/2562

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

coygeek · 1 year ago

There is no built-in command like /delete-conversation to remove a single conversation from your history. However, you can manually delete the conversation file from your local system.

Here’s a breakdown of how conversations are stored and how you can remove one:

  1. Conversation Storage: Claude Code stores each conversation session as a separate .jsonl file on your local machine. These files are typically located in a path ~/.claude/projects/.
  1. Finding the Conversation:
  • Run claude --resume or claude -r. This will display an interactive list of your recent conversations, showing the start time and initial prompt.
  • Use this list to identify the specific conversation you want to delete. Note its details (e.g., date, initial prompt).
  1. Deleting the File:
  • Navigate to the conversation storage directory (e.g., ~/.claude/projects/ and its subdirectories).
  • Locate the .jsonl file that corresponds to the conversation you want to remove. The file will have a unique session ID as its name (e.g., 00893aaf-19fa-41d2-8238-13269b9b3ca0.jsonl). You may need to inspect the contents of the files to match them to the conversation from the --resume list.
  • Delete the file using a standard command like rm <filename>.jsonl.

In summary, the process is:

  1. Use claude --resume to identify the conversation.
  2. Navigate to your local conversation history directory (~/.claude/projects/).
  3. Manually find and delete the corresponding .jsonl file.

Note: The /clear command only clears the history of the current active session, and the cleanupPeriodDays setting in settings.json automatically purges conversations older than a certain number of days, but neither allows for deleting a specific, single conversation.

panosjapan7 · 11 months ago
There is no built-in command like /delete-conversation to remove a single conversation from your history. However, you can manually delete the conversation file from your local system. Here’s a breakdown of how conversations are stored and how you can remove one: 1. Conversation Storage: Claude Code stores each conversation session as a separate .jsonl file on your local machine. These files are typically located in a path ~/.claude/projects/. 2. Finding the Conversation: Run claude --resume or claude -r. This will display an interactive list of your recent conversations, showing the start time and initial prompt. Use this list to identify the specific conversation you want to delete. Note its details (e.g., date, initial prompt). 3. Deleting the File: Navigate to the conversation storage directory (e.g., ~/.claude/projects/ and its subdirectories). Locate the .jsonl file that corresponds to the conversation you want to remove. The file will have a unique session ID as its name (e.g., 00893aaf-19fa-41d2-8238-13269b9b3ca0.jsonl). You may need to inspect the contents of the files to match them to the conversation from the --resume list. * Delete the file using a standard command like rm <filename>.jsonl. In summary, the process is: 1. Use claude --resume to identify the conversation. 2. Navigate to your local conversation history directory (~/.claude/projects/). 3. Manually find and delete the corresponding .jsonl file. Note: The /clear command only clears the history of the _current_ active session, and the cleanupPeriodDays setting in settings.json automatically purges conversations older than a certain number of days, but neither allows for deleting a specific, single conversation.

I'm sorry but this is terrible UX for such a useful task. Can't you add a bin icon next to every conversation in the dropdown list? I am referring to the VS Code Claude Code plugin.

pravar3088 · 10 months ago

100% agree with @panosjapan7 .

I’d also expect a simple, clean “Clear Chat” (🗑️ bin) button in the VS Code Claude code chat box to quickly reset the conversation.

Additionally, I’m curious whether there’s an option (or if one could be added) to disable persistent chat history — so that all chat data is cleared automatically when VS Code restarts.

oagix · 8 months ago

Tell me you wanna hold data hostage without telling me you wanna hold data hostage.

vkouk · 8 months ago

@coygeek Hey, what don't you provide a single command like /resume which instead will delete a single history file?

github-actions[bot] · 7 months ago

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

ataleckij · 7 months ago
github-actions[bot] · 6 months ago

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

marcindulak · 6 months ago

This issue was closed incorrectly despite recent human comments. This behavior of the bot is reported at https://github.com/anthropics/claude-code/issues/16497. Please upvote that issue, so maybe it gets noticed.

amanr-fp · 6 months ago

Anthropic team, its 2026.. and we still miss the basic functionalities. Please add the basic chat features to claude code

github-actions[bot] · 6 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.