[FEATURE] Add CLI Support for Managing and Deleting Resume Sessions
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, the claude --resume functionality allows users to restore previous sessions. However, there is no built-in CLI support for managing or deleting these stored sessions.
As a result, users must manually navigate the local filesystem (e.g., ~/.claude/) to locate and remove session files, which is inconvenient and error-prone.
Proposed Solution
Introduce CLI commands to manage resume sessions:
claude sessions list
claude sessions delete <session_id>
claude sessions clear
Alternative Solutions
_No response_
Priority
Low - Nice to have
Feature Category
CLI commands and flags
Use Case Example
Expected Behavior
List sessions
claude sessions list
Output:
ID Created At Last Used Preview
abc123 2026-04-01 2026-04-03 "Debugging ECS timeout..."
def456 2026-04-02 2026-04-02 "DNS configuration issue..."
Delete a specific session
claude sessions delete abc123
Removes the session from local storage
Prevents it from appearing in --resume
Clear all sessions
claude sessions clear
Deletes all stored sessions
Additional Context
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗