Skip to content

[FEATURE] Add CLI Support for Managing and Deleting Resume Sessions #44024

Description

@GC-RENCAO

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions