clearlisted
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