dsh-plugin-session-delete: A Safe Session Deletion DSH plugin for DeepSeek Harness
lsz-asd/dsh-plugin-session-delete
A DSH plugin to safely and thoroughly delete sessions from the UI, with risk consent and an agent tool.
Permanently delete sessions in the DeepSeek Harness UI, solving the problem of incomplete archiving and corrupted sessions that cannot be removed.
dsh plugin --profile web add github:lsz-asd/dsh-plugin-session-delete- Category
- Sessions & Messages
- Platform
- DSH-Plugin
- Author
- lsz-asd
- Distribution
- Plugin
dsh-plugin-session-delete Key Features
dsh-plugin-session-delete Repository

dsh-plugin-session-delete Repo Summary
dsh-plugin-session-delete is a session management plugin (DSH plugin) for DeepSeek Harness, maintained by lsz-asd, written in JavaScript, and last updated on 2026-08-14. It solves the pain point that sessions cannot be fully deleted from the web client: archiving only hides them, and corrupted sessions cannot be removed, causing history desync. The plugin adds a trash button at the top of the conversation and a "Delete session" item in the sidebar session-row "..." menu. Clicking either opens a risk-consent dialog (checkbox required), and on confirmation it deletes the session log, projection cache, and workspace accounting. Running sessions are stopped before deletion, and the list refreshes in place without a page reload. It also provides the workbench_session_delete tool so agents can delete sessions directly.
What core features does the dsh-plugin-session-delete DSH plugin support?
The plugin offers two deletion entry points: a header trash button and a sidebar menu item. The deletion chain covers the session directory, projection cache, and workspace accounting, keeping in-memory and on-disk state consistent through the active storageDomain. The risk-consent dialog requires explicit user confirmation to prevent accidental deletion. Running sessions show a warning; if the user still chooses to delete, the session is stopped first. Additionally, the workbench_session_delete tool lets agents delete sessions programmatically, extending automation capabilities.
How to install dsh-plugin-session-delete?
Use the following command, replacing <profile> with your profile name, then restart the profile to apply:
dsh plugin --profile <profile> add github:lsz-asd/dsh-plugin-session-delete
Which DeepSeek Harness versions and platforms are compatible with dsh-plugin-session-delete?
The plugin works in the web client and is theoretically compatible with any web-shell-based client, including the desktop client. It adapts to the client's Chinese/English language dictionaries, following the UI language (setting or browser language) and switching live; environments without the locale service fall back to built-in dictionaries.
What key fixes are in the dsh-plugin-session-delete changelog?
v0.3.1 fixed the issue of deleted sessions being left as "Ungrouped" rows after a partial delete. It cleans both raw UUID and session--prefixed id forms, deletes the on-disk log and confirms it before removing workspace accounting, and flushes live sessions to prevent dispose-time rewrites from recreating the log directory. v0.3.0 added English adaptation (i18n), moving all copy into zh/en dictionaries.
What are the future development plans for dsh-plugin-session-delete?
The roadmap includes adding more session-operation tools and options, and exposing existing session options to agents as tools, further enhancing DeepSeek Harness's session management capabilities.