dsh-plugin-conversation-delete
Manifest validAdds a Delete conversation action to the conversation menu that permanently removes the session log, projection cache, and sidebar entry; refuses while a turn, subagent, job, or reminder is running.
dsh-plugin-conversation-delete
Adds a Delete conversation action to every conversation row in DeepSeek Harness.
DSH intentionally ships archive without deletion: archived conversations stay on disk forever. This plugin adds a real, permanent delete behind an explicit confirmation dialog.
What it does
- Adds 删除对话 / Delete conversation to the
⋯menu of every conversation (and to the row's right-click menu, which shares the same contribution). - Asks for confirmation, naming the conversation, and warns that the action cannot be undone.
- Deletes:
- the conversation's log directory under
$DSH_HOME/sessions/…(all format generations and the writer lock); - its projection-cache row under
$DSH_HOME/storages/session_projcache/sessions/…when it uses the standard layout; - its place in the sidebar — the conversation is archived through the workspace registry first, which releases the open view, clears its pin, and refuses while a turn, subagent, background job, or reminder is still running.
- the conversation's log directory under
- Reloads the page so the sidebar reflects the deletion immediately.
Safety behavior
- Running work is never deleted underneath itself. If the conversation is active, the plugin refuses and tells you what is still running. Stop it first.
- Only the owner browser can call the route. The endpoint is registered through
the Host Connection's exact-Fetch registry, so it sits behind the same
browser cookie, Host/Origin check, and owner-Peer gate as the rest of
/api. - The path to delete comes from the session-persistence backend, never from the browser, and is checked to stay inside the persistence root with a matching session id.
- Deleting is permanent. Archive remains the reversible option.
Install
From npm (plugin market / Discover)
dsh plugin --profile <profile> add dsh-plugin-conversation-delete
Then enable the bundle in Plugins if your host does not enable new bundles automatically, and refresh the page. (Not published to npm yet — see the repository's release notes.)
Local build
git clone https://github.com/Marco77Cl/dsh-plugin-conversation-delete.git
cd dsh-plugin-conversation-delete
npm pack
dsh plugin --profile <profile> add file:$(pwd)/dsh-plugin-conversation-delete-0.1.0.tgz
For DSH Desktop, install through the app's plugin manager (or the plugin
market) rather than a separate dsh CLI — Desktop uses its own profile.
Requirements
- DSH
>= 0.2.2-rc.1with the Web UI (Desktop ordsh web). - The shipped
workspace,session-persistence-jsonl,session-projection-cache,client-connection, andui-workspaceplugins. Profiles built fromdsh-base+dsh-web-apphave all of them.
How it works
| Half | File | Role |
|---|---|---|
| Host | lib/index.js | Registers POST /api/session-delete/delete on the exact-Fetch registry; archives the session, validates the backend-reported log path, removes the log directory and cache row. |
| Client | lib/client.js | Contributes the session.delete menu item through ctx.contextMenus, mounts a confirm dialog in shell.overlay, calls the route, reloads. |
| Bundle | cordis.patch.yml | Inserts the plugin row into the profile. |
Both halves are plain JavaScript; the client entry is a hand-written
__ModuleLoader__ factory, so no build step is required.
License
MIT
Versions
| Latest version | Published | Size |
|---|---|---|
| 0.1.0 | — | — |
Comments
Loading…
Similar plugins
by HERO476
Delete a DSH conversation from its sidebar menu or the conversation header, optionally cascading into that conversation's associated memory nodes when you tick the box (the confirmation dialog shows t
★ 1
MIT
JavaScript
Nov 5, 2026
dsh plugin --profile web add dsh-conversation-recycle-binby rhl88
Deletes a session from the sidebar session menu after a confirmation dialog, removing its log directory, projection-cache record and workspace/pin/archive accounting; registry calls are timeout-guarde
★ 0
MIT
JavaScript
Oct 13, 2026
dsh plugin --profile web add dsh-session-remove彻底删除 DSH 会话记录 / Permanently delete DSH session records from the sidebar context menu — log directory, projection cache and workspace registration, with a confirmation dialog.
★ 0
MIT
JavaScript
dsh plugin --profile web add dsh-session-purgerby Very12345
Delete a conversation straight from the DSH Web GUI sidebar row, including its DSH archive-gate entry. Standalone, DSH-version-agnostic DSH plugin.
★ 0
MIT
JavaScript
Oct 2, 2026
dsh plugin --profile web add @very12345/dsh-archive-deleteby NIGHT576
Real deletion for DSH Web conversations: a session-row menu action and a Workspaces-header batch dialog; removes each session's log directory and projection cache. 给 DSH Web 侧栏补上真正的会话删除:右键菜单删单条、区头批量删多
★ 0
MIT
JavaScript
Sep 12, 2026
dsh plugin --profile web add dsh-delete-sessionby jerrywang21-debug
Sidebar delete action for the DeepSeek Harness (DSH) web client: removes a conversation from the Harness and moves its log + projection cache to the system Trash.
★ 0
MIT
JavaScript
Oct 7, 2026
dsh plugin --profile web add @jerrrrrywang/dsh-session-delete