Skip to content

[Feat] Add a command to delete current session upon exit #18871

@cary-rowen

Description

@cary-rowen

What would you like to be added?

I would like to suggest a new command, for example /exit-delete or an option for the /exit command, that allows users to exit the CLI and simultaneously delete the current session's history and temporary files.

Why is this needed?

For users who value privacy or only want to perform a one-off task without leaving any traces in the ~/.gemini/tmp/ directory, the current workflow requires manually identifying and deleting the session or configuring strict retention policies. A simple command to "exit and wipe" would provide a much smoother experience for these scenarios.

Additional context

This would complement the existing /chat delete command by automating the process at the end of a workflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coreIssues related to User Interface, OS Support, Core Functionalityarea/securityIssues related to securityhelp wantedWe will accept PRs from all issues marked as "help wanted". Thanks for your support!priority/p3Backlog - a good idea but not currently a priority.
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions