DSH Plugins Marketplace

DSH Plugins

Plugins

/

Terminal & Clients

/

dsh-session-delete

d

dsh-session-delete

Manifest valid

Deletes a session from the sidebar session menu: its log and replay cache go to the Recycle Bin on Windows (a local trash folder elsewhere); a live session is queued for removal on the next start.

UI (client)hasBundlePatch

dsh-session-delete

English | 简体中文

Adds 「删除会话 / Delete session」 to the sidebar's Session context menu in DeepSeek Harness and performs a real, recoverable deletion.

Session context menu with the Delete entry

Confirmation before deleting

What it does

Hover a session row and click its ⋯ button → Delete session.

Session stateBehaviour
Cold (not loaded in this app run)Deleted immediately; its log and replay cache go to the Windows Recycle Bin (fallback: <DSH_HOME>/.session-trash/). The sidebar list refreshes itself through the client Session controller — no page reload needed.
Live (the session open right now, or one opened earlier in this run)DSH exposes no "close a session" API, so the files cannot be removed safely. The plugin offers to queue it: POST /dsh-session-delete/queue writes <DSH_HOME>/.session-delete-queue.json, and the next start drains that queue before anything is opened.

After a restart that removed queued sessions, a small notice in the corner lists what was deleted (titles, up to five, with a count for the rest) and reports any entry that could not be removed and stays queued.

Files removed

For one session id:

PathWhat
<DSH_HOME>/sessions/<project>/session-<id>/the append-only event log
<DSH_HOME>/storages/session_projcache/sessions/<id>.jsonthe replay/projection cache

Nothing else is touched. Attachments are shared, content-addressed blobs and are deliberately left alone. The Workspace registry keeps its sessionIds entry — the registry has no "unregister a session" API, and the sidebar already skips ids whose stored session is gone.

Safety

  • A live session is refused (409); only the queue path can remove it, on the next start.
  • The HTTP routes sit behind the Host's browser trust fence (connection.requestRejection) and accept only session-<uuid> ids.
  • Deletions are recoverable: Recycle Bin, or a stamped directory under <DSH_HOME>/.session-trash/.

Requirements

  • DeepSeek Harness 0.2.x (the sidebar.workspaces.session.menu.item and shell.overlay slots).
  • Windows for Recycle Bin support; on other platforms files fall back to the trash directory.

Install

Listed in the plugin market once the registry entry is merged. Manual install:

dsh plugin --profile desktop add github:ashulam/dsh-session-delete
# or from a local checkout:
cd <profile dir>
pnpm add file:<path to this repo>
# then add "dsh-session-delete" to dsh.profile.bundles in package.json

Layout

  • lib/index.js — host half: POST /dsh-session-delete/delete, POST /dsh-session-delete/queue, GET /dsh-session-delete/last-drain (plus the boot-time queue drain).
  • client/client.js — browser half: the context-menu entry and the boot notice.
  • cordis.patch.yml — inserts the host row into the profile.

License

MIT

Comments

Loading…

Similar plugins

dsh-session-delete

Adds delete and batch delete to the session list menu; sessions go to the Windows Recycle Bin instead of being erased, and the files a session produced are listed first so you decide whether to remove

Sessions & MessagesManifest valid

★ 0

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

by DDDMUC

Delete sessions from the DSH Web sidebar: adds a Delete action to the session row menu with a risk-consent dialog, then removes the session log, workspace accounting and live session state.

Terminal & ClientsManifest valid

★ 14

↓ 229/wk

MIT

JavaScript

Oct 19, 2026

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

Adds a Delete session action to the sidebar session menu that permanently deletes the local records of that session, while refusing sessions that are running.

Sessions & MessagesManifest valid

★ 0

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

Adds a permanent-delete row to the sidebar menu of archived sessions, removing the session log, its projection cache and its workspace registration.

Sessions & MessagesManifest valid

★ 0

dsh plugin --profile web add dsh-session-purge

by Baboo-ming

Permanently delete a DSH session from the sidebar session row menu (danger-styled) with a confirm modal and a seven-stage, independently-degrading deletion pipeline (validate → running guard → workspace ledger → archive set → on-disk logs → in-memory drop → broadcast).

Terminal & ClientsSessions & MessagesManifest valid

★ 3

↓ 281/wk

MIT

JavaScript

Oct 17, 2026

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

by Yicijiuhaobala

Adds a "Delete session" item to the DSH session-row context menu (next to rename/fork/archive) — permanently removes session logs from disk, with live-session protection.

Sessions & MessagesManifest valid

★ 0

MIT

JavaScript

Aug 24, 2026

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