Preface¶
Sessions in the DeepSeek Harness (DSH) sidebar can be archived: entries disappear from the list and can be restored if needed. However, archiving is not equivalent to wiping data from the disk. Compressed logs remain in ~/.dsh/sessions/, projection checkpoints remain in ~/.dsh/storages/session_projcache/, and the workspace continues to account for session IDs that may never be opened again. If you care about local retention, privacy, or disk usage, you need to “delete” rather than “hide.”
The community plugin dsh-session-delete (repository Adolanium/dsh-session-delete) adds this action to DSH 0.2.x: it adds a Delete session… entry at the bottom of the session row menu. After confirmation, the Host cleans up logs, projection caches, and workspace accounting, rather than just archiving. The plugin is maintained by Adolanium, categorized as a client-side extension; it is MIT licensed and is not an official DeepSeek product.
What is this¶
dsh-session-delete is positioned as a tool to provide permanent session removal capabilities for DeepSeek Harness. The npm package name is dsh-plugin-session-delete (version 0.1.0 in current materials). Without altering the built-in archive behavior, it adds a second path in the same menu that requires secondary confirmation.
| Archive | Delete | |
|---|---|---|
| Sidebar row disappears | Yes | Yes |
| Session logs on disk | Retained | Removed |
| Projection cache | Retained | Removed |
| Workspace accounting / Pinned / Archived items | Retained | Removed |
| Recoverable | Can unarchive | No |
Environment and Installation¶
Dependencies: DeepSeek Harness 0.2.x (README states tested on 0.2.1-rc.1). Both Desktop and Web UI are supported. The package is pure JavaScript with no prepare script and no runtime dependencies, requiring Node >= 20.
Below are two common installation methods; the installation spec is a GitHub URL, not a name concatenation.
Install from the Plugins page (Recommended)¶
- Open the sidebar and go to Plugins.
- Choose to install a plugin and paste:
github:Adolanium/dsh-session-delete
- Complete the installation; the bundle is enabled by default.
- Refresh the DeepSeek Harness window (
Ctrl+R/Cmd+R). The browser side uses lazy loading, so the menu item will appear only after a refresh.
Using dsh CLI¶
If you start the profile yourself (Web, headless, or stopped Desktop), you can install the same spec for a named profile:
dsh plugin --profile desktop add github:Adolanium/dsh-session-delete
dsh writes the bundle to the profile’s dsh.profile.bundles (the package declares dsh.bundle). After starting the Harness, refreshing the window is also recommended.
If you need to pin to a specific release version, you can install with a tag (README example):
dsh plugin --profile desktop add github:Adolanium/dsh-session-delete#v0.1.0
Uninstall:
dsh plugin --profile desktop remove dsh-plugin-session-delete
Running the CLI against the desktop profile while Desktop is running is supported by the profile lock, but the Plugins page is usually easier and reports activation status.
Typical Usage¶
Open the ⋯ menu on the right side of a session row and select Delete session…. The dialog will display the session name and explain that logs and their cached projections will be removed. Delete executes the deletion; Cancel makes no changes.
The results vary by session state as follows.
| State | Behavior |
|---|---|
| Cold — No live Agent occupation | Delete immediately; the row disappears from the list, and the dialog closes. |
| Live — Open in this app or has a running turn | The dialog explains the log is still in use and may offer Delete on next start. |
| Unknown id | Refuse; no data is modified. |
Delete on next start¶
Live sessions cannot be forcibly removed from under the Agent, so deletion can be queued:
- The ID is written to
~/.dsh/plugin-session-delete/pending.json; - The session is archived on a best-effort basis so the row disappears from the default list;
- The deletion is retried when write handles are idle during the next DeepSeek Harness startup;
- If you unarchive the session, the queued deletion is cancelled — archiving serves as a visible “pending deletion” state.
Queued IDs that no longer exist are silently discarded; IDs still in use are retained for the next startup attempt.
Deletion Scope and Safety¶
For a single session ID, the Host removes:
- The session directory under
~/.dsh/sessions/<project>/<session-id>/(including generation-specificsession.vN.jsonl.zstdand lock files); - Projection cache records in the
session_projcachedomain (via domain API to avoid memory residue); - Workspace accounting slots, global pins, and archived items.
Deliberately retained content includes: content-addressed attachments under ~/.dsh/attachments (potentially shared with other sessions); sub-Agent sub-sessions (independent IDs, requiring separate deletion); if combined with dsh-session-query-sqlite, the SQLite search index reconciles on the next search; derived rows in other domains (telemetry, titles, etc.) are ignored because the ID cannot be resolved.
The plugin designs deletion safety around four rules: Single Writer (acquires persistence write handle first and closes immediately; refuses deletion on failure); Loopback Only (rejects non-local sources); Strict ID and directory validation; refuses deletion rather than just clearing accounting if logs are not under the config root. No network, no telemetry, no background processes.
Optional configuration (all omissible, defaults match standard installation) includes: dshHome (default $DSH_HOME or ~/.dsh), sessionsRoot (default <dshHome>/sessions), storagesRoot (default <dshHome>/storages; the README configuration table is truncated in the materials, refer to repository docs for other fields).
Applicable Scenarios and Notes¶
Suitable for developers or personal environments that need to explicitly “delete this session and its local persistent traces” in the DSH sidebar, such as cleaning up experimental sessions, reducing ~/.dsh usage, or performing irreversible removal when archiving is insufficient.
Please be aware before installing: this is community code that actively deletes local files and runs with the current DSH process permissions; you should read the repository’s Safety and source code first, and confirm the MIT license. The DeepSeek Harness ecosystem emphasizes “everything is a plugin”; the SkillHub directory page is a community site, has no official affiliation with DeepSeek / High-Flyer, nor is it an official app store.
Conclusion¶
Archiving is suitable for “hide it first, you can come back later”; dsh-session-delete provides a parallel Delete session… option that requires confirmation, cleaning up logs, projection caches, and workspace accounting on the Host side. The installation spec is github:Adolanium/dsh-session-delete; once installed, refresh the interface to use it in the session menu.