← ClaudeAtlas

clearlisted

Delete the saved set of Claude Code sessions (the snapshot made by the `save` skill) without restoring it — only the saved list, never the conversations themselves. Asks first if some saved sessions were never restored. Use when the user wants to remove / delete / clear / discard / forget their saved sessions or snapshot, e.g. "clear sessions", "remove sessions", "clear my saved sessions", "remove my saved sessions", "delete the sessions snapshot", "forget the sessions I saved", "start fresh before a demo", optionally also resetting the restore defaults ("and reset my restore settings"). Windows, Linux and macOS.
vslipchenko/ai · ★ 0 · AI & Automation · score 70
Install: claude install-skill vslipchenko/ai
# Sessions — Clear Delete the snapshot made by `save`, so there is nothing to restore. This removes only the saved list of sessions: the conversations stay in Claude Code and can still be resumed one by one (`claude --resume`). The restore defaults set with `config` (e.g. "always restore in Git Bash") are kept unless the user asks to reset them too. ## Script Pick the command for the OS you're running on (the environment tells you the platform); the options and JSON output are identical. - **Windows** — run with the PowerShell tool (or Bash): ``` powershell -NoProfile -ExecutionPolicy Bypass -File "${CLAUDE_PLUGIN_ROOT}/scripts/sessions.ps1" <command> [options] ``` - **Linux and macOS** — run with Bash: ``` python3 "${CLAUDE_PLUGIN_ROOT}/scripts/sessions.py" <command> [options] ``` If `python3` is not installed, tell the user the plugin needs Python 3 and stop: on Linux e.g. `sudo apt install python3`; on macOS `xcode-select --install` (Apple's Command Line Tools, which include `/usr/bin/python3`). If `${CLAUDE_PLUGIN_ROOT}` above was not replaced with a real path, use the folder two levels above this skill's base directory instead. Pass `-DataDir "${CLAUDE_PLUGIN_DATA}"` exactly as written; the script handles an empty or unreplaced value. Every command prints one JSON line; `"ok": false` carries `error` and `message`. ## Step 1 — See what is saved ``` ... snapshots -DataDir "${CLAUDE_PLUGIN_DATA}" ``` Result: `snapshots[]` (normally one) with `creat