dsh-session-delete

Adds a "Delete session" action after "Archive session" that permanently removes one session: its log directory, rewind snapshots and projection-cache entry, its workspace/archive/pin registrations, schedules bound to it, and its rows in the chat-index and usage databases. A preview lists every target before anything is deleted; the same operation is exposed to agents as the session_delete tool with a dryRun option.

Overview

Adds a "Delete session" action after "Archive session" that permanently removes one session: its log directory, rewind snapshots and projection-cache entry, its workspace/archive/pin registrations, schedules bound to it, and its rows in the chat-index and usage databases. A preview lists every target before anything is deleted; the same operation is exposed to agents as the session_delete tool with a dryRun option.

Installation

Install from GitHub

dsh plugin --profile web add github:LIQiang-IT/dsh-session-delete

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.

Installation notes

  • May run terminal commands