DSH Plugins Marketplace

DSH Plugins

Plugins

/

Sessions & Messages

/

dsh-session-cleaner

f

dsh-session-cleaner

Manifest valid★ 7

Adds session deletion capability to DeepSeek Harness, with an entry point accessible via the sidebar ⋮ menu

UI (client)hasBundlePatch

dsh-session-cleaner

English | 中文

Delete DeepSeek Harness sessions from a running web runtime — files, live store, and workspace records — without restarting dsh web.

The official web API only offers workspace.archiveSession (hide); there is no session.delete. This bundle closes that gap.

Install

dsh plugin --profile web add dsh-session-cleaner            # from npm
dsh plugin --profile web add github:fountunt/dsh-session-cleaner   # from git

# or from a local checkout
dsh plugin --profile web add file:/path/to/dsh-session-cleaner

Then restart dsh web (a running instance does not hot-load new bundles).

Usage

Web UI (v1.0.0)

The client half adds a 🗑 "Delete session" item at the bottom of the sidebar session row ⋮ menu — the item is skipped when the row title is ambiguous (duplicate titles).

Click, confirm, and the session is deleted and the sidebar refreshes. The item is disabled (greyed) while the session is running; sessions opened in the UI (idle agents) are stopped first, then deleted. The current running conversation can never be deleted.

API

The plugin registers one route on the web server:

POST /api-ext/session.delete
Content-Type: application/json

{ "sessionId": "session-1bb8d361-ea6b-4b92-bab2-c858c92e8822" }

Same-origin calls work from the browser console of the harness page:

await fetch("/api-ext/session.delete", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({ sessionId: "session-1bb8d361-ea6b-4b92-bab2-c858c92e8822" }),
}).then(r => r.json());

Response envelope (mirrors the host's RPC style):

{ "ok": true, "value": { "detached": true, "workspaces": 1, "files": 1 } }
{ "ok": false, "error": { "code": "refused", "message": "..." } }
  • detached — the session was removed from the in-memory live store (this is what makes it disappear from the sidebar immediately, without a restart).
  • workspaces — how many workspace records the session was detached from.
  • files — how many on-disk artifact directories were removed.

Safety

  • Sessions with an attached agent (running or idle) are refused — the current conversation can never be deleted through this endpoint.
  • Deletion is irreversible: artifacts, workspace membership, and the live entry are all removed. The session-projection cache may keep a harmless stale row until the next restart.

How it works

session.list is served from the live SessionStore plus a disk scan. Cold sessions get prepared into the live store while being listed, so after their files are deleted they linger as "ghosts" until the server restarts. This plugin removes the live entry (the store's own detach path), detaches the session from workspace records, and deletes the on-disk artifact directory — so the row disappears immediately and permanently.

Development

pnpm install        # peer: @deepseek-ai/cordis
node --test test/   # unit tests

License

MIT

Compatibility

DSH 0.2.1-rc.4: failedDSH 0.2.1-alpha.3: failedDSH 0.2.1-alpha.4: failed

Versions

Latest versionPublishedSize
0.2.2——
0.2.1——
0.2.4——
0.2.3——
1.0.0——
0.1.0——
1.0.2——
0.2.0——
1.0.1——

Comments

Loading…

Similar plugins

dsh-sessions-plugin

by luckamuu

DeepSeek Harness 插件:提供删除已归档会话的入口(可以彻底删除不会在次出现)

Manifest valid

★ 0

MIT

JavaScript

Oct 8, 2026

dsh plugin --profile web add @local/archived-sessions

by lxchapu

DSH(DeepSeek Harness)插件:把会话从磁盘上彻底删除。任意会话的「…」菜单里可删单条,侧边栏切到「仅显示已归档」时可一键删除全部已归档会话;两者都先弹二次确认,正在运行的会话会被拒绝删除。

Development & InfrastructureManifest valid

★ 1

MIT

JavaScript

Oct 3, 2026

dsh plugin --profile web add @lxchapu/dsh-session-purge

by Linusteller

DeepSeek Harness 插件:侧栏会话菜单「删除会话」(永久删除,非归档)

Development & InfrastructureSessions & MessagesManifest valid

★ 2

MIT

JavaScript

Oct 22, 2026

dsh plugin --profile web add dsh-delete-sessions

by jackxiao17

DSH 桌面版会话清理插件:侧栏 ··· 菜单一键删除会话入回收站,支持搜索、恢复、彻底删除与对话记录查看 | DSH desktop plugin: delete sessions from the sidebar ... menu into a recycle bin with search, restore, permanent delete and chat log viewer

Development & InfrastructureSessions & MessagesManifest valid

★ 7

↓ 267/wk

MIT

JavaScript

Oct 25, 2026

dsh plugin --profile web add dsh-session-cleaner

by new-256

DSH 会话清理宿主插件:侧边栏原生「移入回收站」+ 回收站管理页 + HTTP API(两级可恢复删除、同名防删错、活跃会话保护)

Manifest valid

★ 0

↓ 296/wk

MIT

JavaScript

Sep 9, 2026

dsh plugin --profile web add @luchenglong/dsh-session-cleaner

by G57651

DeepSeek Harness 会话管理面板插件:全部/已归档/已删除视图、批量管理、软删除回收站

Sessions & MessagesManifest valid

★ 1

NOASSERTION

JavaScript

Sep 28, 2026

dsh plugin --profile web add @g57651/dsh-session-manager