dsh-plugin-session-purge: Completely Remove Sessions in DSH
dsh-plugin-session-purge is a zero-dependency DSH plugin (v2.1.0, MIT) maintained by zzwtian. It adds a "Purge…" entry to the session right-click context menu. Upon invocation, the host executes a fixed 7-step deactivation sequence: deactivate the session, export an archive, remove it from the workspace ledger, dispose of active sessions, and then delete logs and cache. The API is POST-only, authenticated via requestRejection, with guards on both sessionId and path. Installation is performed through install.sh or install.ps1, which register a link: entry pointing to a local directory. If the desktop profile is exclusively locked by Electron, the in-app plugin manager must be used instead. Suitable for local compliance-driven cleanup; note that residuals such as attachments, worktrees, scheduled tasks, and sub-agents are not covered.
Read Moredsh-plugin-session-purge: Implementing Two-Step Secure Deletion via Recycle Bin Mechanism
The `dsh-plugin-session-purge` plugin fills the gap left by the inability to delete native sessions by introducing a recycle bin mechanism. Key features include two-step deletion (moving to a directory first, then permanent deletion upon startup), recycle bin management, intelligent protection of attachments and indexes, and child session handling. The plugin provides precise routing via API and ensures process safety with permission restrictions. Users can move sessions to the recycle bin via the sidebar menu and restore or permanently delete them from the recycle bin panel. When uninstalling, manual emptying of the recycle bin and removal of residual directories are required.
Read More