[FEATURE] Add CLI command to delete all Claude Code sessions as well as a particular session
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Currently, UX lacks a feature to delete all existing Claude Code sessions and to delete a session by name. This feature is vitally important as I want to have a full control of all of my conversations in different sessions and to have a tool to efficiently manage the memory those sessions fill.
Proposed Solution
When I am inside Claude Code session, I want to run /delete-sessions to delete all current sessions to free the memory. If I want to delete a particular session, I would run /delete-sessions and backspace to see available session to delete. Then, I will go ahead and choose a particular one for deletion.
Alternative Solutions
_No response_
Priority
Critical - Blocking my work
Feature Category
CLI commands and flags
Use Case Example
_No response_
Additional Context
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗