[FEATURE] /delete command to permanently delete current session and reopen session picker

Resolved 💬 3 comments Opened Apr 25, 2026 by Myro-Kova Closed Apr 25, 2026

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

## Summary

Add a /delete slash command that permanently deletes the current conversation session and relaunches the session
picker (equivalent to claude --resume).

## Motivation

Currently, /clear only clears the in-memory context — it does not remove the session file from disk. There is no
in-session way to:

  1. Permanently delete a conversation you no longer need
  2. Immediately jump back to the session picker

The only workaround is to manually find and delete session files under ~/.claude/projects/, then run claude
--resume
from a separate terminal.

## Why this is useful

  • Clean session hygiene without leaving the CLI
  • Quick context reset when switching tasks
  • Pairs naturally with claude --resume as a session management workflow

Proposed Solution

## Proposed behavior

/delete

  • Prompts for confirmation (e.g. Delete this session permanently? [y/N])
  • On confirmation: deletes the current session file from disk
  • Immediately exits the current session and relaunches the session picker (like claude --resume)

Alternative Solutions

## Alternatives considered

  • /clear — only clears context, does not delete the session file
  • External shell script — works but requires leaving the Claude Code session
  • Manual file deletion — not discoverable, breaks the workflow

Priority

Medium - Would be very helpful

Feature Category

CLI commands and flags

Use Case Example

_No response_

Additional Context

Thx and Good Day

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗