claude-code - 💡(How to fix) Fix Allow selective deletion of individual conversations from history [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#56260Fetched 2026-05-06 06:32:54
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Participants
Timeline (top)
labeled ×4
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

All conversation history is stored in a single ~/.claude/history.jsonl file. There is no CLI command, keyboard shortcut, or UI gesture to delete individual conversations. The only option is to delete the entire file, which wipes all history.

Proposed Solution

  • A way to selectively delete one or more conversations from history, either via:
  • A CLI command (e.g. claude history delete <session-id>)
  • A keyboard shortcut in the Ctrl+R history view (e.g. Delete/Backspace on a selected entry)

Alternative Solutions

No response

Priority

High - Significant impact on productivity

Feature Category

CLI commands and flags

Use Case Example

Users accumulate many conversations over time and want to keep their history clean without losing everything. Sensitive or irrelevant conversations should be removable without manual file editing.

Additional Context

Platform: Windows 11 / Claude Code CLI

extent analysis

TL;DR

Implement a CLI command, such as claude history delete <session-id>, to allow users to selectively delete conversations from their history.

Guidance

  • Consider adding a --help flag to the proposed claude history delete command to provide usage instructions and options for deleting conversations.
  • To verify the functionality, test the command with different session IDs and ensure that only the specified conversations are deleted from the ~/.claude/history.jsonl file.
  • When designing the command, decide whether to prompt the user for confirmation before deleting a conversation, to prevent accidental data loss.
  • Evaluate the security implications of allowing users to delete sensitive conversations, and consider adding any necessary access controls or auditing mechanisms.

Example

No code example is provided, as the issue does not contain sufficient technical details about the implementation.

Notes

The proposed solution assumes that each conversation has a unique session ID that can be used to identify and delete it. The implementation may need to handle cases where multiple conversations have the same session ID or where the session ID is not unique.

Recommendation

Apply workaround: Implement the proposed claude history delete CLI command to provide users with a way to selectively delete conversations from their history, as this addresses the primary concern of allowing users to manage their conversation history without losing everything.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Allow selective deletion of individual conversations from history [1 participants]