DSH Plugins Marketplace

DSH Plugins

Plugins

/

Sessions & Messages

/

dsh-plugin-conversation-delete

d

dsh-plugin-conversation-delete

Manifest valid

Adds 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.

UI (client)hasBundlePatch

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:
    1. the conversation's log directory under $DSH_HOME/sessions/… (all format generations and the writer lock);
    2. its projection-cache row under $DSH_HOME/storages/session_projcache/sessions/… when it uses the standard layout;
    3. 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.
  • 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.1 with the Web UI (Desktop or dsh web).
  • The shipped workspace, session-persistence-jsonl, session-projection-cache, client-connection, and ui-workspace plugins. Profiles built from dsh-base + dsh-web-app have all of them.

How it works

HalfFileRole
Hostlib/index.jsRegisters 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.
Clientlib/client.jsContributes the session.delete menu item through ctx.contextMenus, mounts a confirm dialog in shell.overlay, calls the route, reloads.
Bundlecordis.patch.ymlInserts 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 versionPublishedSize
0.1.0——

Comments

Loading…

Similar plugins

dsh-conversation-recycle-bin

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

Security & AuditSessions & MessagesManifest valid

★ 1

MIT

JavaScript

Nov 5, 2026

dsh plugin --profile web add dsh-conversation-recycle-bin

by 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

Sessions & MessagesManifest valid

★ 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.

Sessions & MessagesManifest valid

★ 0

MIT

JavaScript

dsh plugin --profile web add dsh-session-purger

by Very12345

Delete a conversation straight from the DSH Web GUI sidebar row, including its DSH archive-gate entry. Standalone, DSH-version-agnostic DSH plugin.

Sessions & MessagesManifest valid

★ 0

MIT

JavaScript

Oct 2, 2026

dsh plugin --profile web add @very12345/dsh-archive-delete

by 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 侧栏补上真正的会话删除:右键菜单删单条、区头批量删多

Manifest valid

★ 0

MIT

JavaScript

Sep 12, 2026

dsh plugin --profile web add dsh-delete-session

by 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.

Sessions & MessagesManifest valid

★ 0

MIT

JavaScript

Oct 7, 2026

dsh plugin --profile web add @jerrrrrywang/dsh-session-delete