← ClaudeAtlas

session-deletelisted

Permanently delete one local Codex session by title, ID, or project query, or bulk-delete the current project's sessions with --all. Use only for user-requested deletion and require a separate explicit final confirmation before any destructive command.
devgirishattri/agent-plugins · ★ 0 · Web & Frontend · score 72
Install: claude install-skill devgirishattri/agent-plugins
# Session Delete Do not add a preamble. Resolve `PLUGIN_ROOT` from the selected skill's absolute path: it is the session-manager directory containing `skills/` and `scripts/`. Never hard-code a marketplace cache version. Treat the user's initial deletion request as intent to start the flow, not as final confirmation. Never delete until a separate final confirmation question has been answered affirmatively; identification or selection alone is insufficient. For a selection or confirmation: - Use `request_user_input` when it is available in the current mode and can represent the choices. - Otherwise, ask one direct blocking question and stop. Do not run a deletion command until the user answers in a later turn. - Make cancellation the default. For final confirmation, put `No, cancel (Recommended)` before `Yes, delete it` (or `Yes, delete all`). Treat anything except an explicit affirmative answer to that final question as cancellation. ## Delete all sessions for the current project When the target is exactly `--all`, run: ```bash bash "$PLUGIN_ROOT/scripts/list-sessions.sh" ``` If no rows are returned, report that no sessions were found and stop. Otherwise, show the rows and exact count, warn that the active session is included and may be rewritten when it exits, then ask the final confirmation question. Only after an explicit affirmative answer, run: ```bash bash "$PLUGIN_ROOT/scripts/delete-all-sessions.sh" --confirmed ``` Report the native Codex results. On any oth