Skip to content

Copilot CLI - Delete Session folder command #2869

@CYorkie

Description

@CYorkie

Describe the feature or problem you'd like to solve

As far as I am aware, there is no way to delete the session permanently via the CLI.

Proposed solution

Add a new /session delete command which deletes the session folder and starts a new session. Having a /session delete-all might also be helpful if you want to clear down all sessions

Example prompts or workflows

/session delete (deletes current session)
/session --sessionId XXX delete (deletes specific session by Id)
/session delete-all (deletes all sessions)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:sessionsSession management, resume, history, session picker, and session state
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions