Introduction¶
In the DeepSeek Harness (DSH) desktop version, the session list defaults to providing archiving, and session data remains on disk for a long time. After accumulating many debugging sessions, trial runs, or temporary conversations, if you only want to clear a specific session from the list but also want to be able to recover it for a while, the host application does not have a built-in “Delete” entry. The community plugin dsh-session-delete-menu (maintainer JadeL-Kemo) injects “Delete Session” into the session row ⋯ menu. It utilizes the host’s soft delete interface to move the directory into .sessions-trash, allowing recovery within 24 hours.
Below, the plugin is explained according to its positioning, capabilities, installation, and behavior; facts are based on the GitHub repository README and package.json.
What is it¶
dsh-session-delete-menu is a pure client-side DSH plugin (Category: Client), with no build steps. It registers a red “Delete Session” in the session context menu of the desktop / web profile. Upon confirmation, it calls POST /api/mobile-nav.session.delete, moves the session directory to the trash area, and refreshes the list. License MIT, current package version 0.1.0, requires DSH >=0.2.2-rc.1 <0.3.0-0 (consistent with engines.dsh and dsh.compatibility in package.json).
Core Features¶
- Menu Injection: Adds “Delete Session” to the bottom of the session
⋯menu viactx.contextMenus.register({ target: 'session', order: 700 })(implementation located inlib/client.js). - Soft Delete: After deletion, the session directory moves to
<sessions>/.sessions-trash/<timestamp>-<workspace>-<id>/, recoverable within 24 hours. - Archived Sessions: Both normal and archived sessions can be deleted.
- List Refresh: Calls
ctx.sessions.refresh()to update the session list upon success. - Busy Session Protection: Deleting a currently running session returns
409 session-busy; you must switch to another session first.
The delete interface is provided by the dsh-web-mobile plugin; if this host plugin is not installed, clicking the menu item results in a 404 (known limitation in the README).
Installation and Activation¶
Dependencies: DSH 0.2.2-rc.1 (desktop / web profile), and dsh-web-mobile which provides the delete interface. Node engine requirement is ^22.19.0 || >=24.0.0.
Install from a local directory (after obtaining this repository’s directory):
dsh plugin --profile desktop add file:<repository-path>
Alternatively, the directory can be copied or symlinked to the profile’s node_modules, and dsh-session-delete-menu can be appended to dsh.profile.bundles in package.json.
After installation, restart DSH; “Delete Session” should appear at the bottom of the session row ⋯ menu.
Uninstall:
dsh plugin --profile desktop remove dsh-session-delete-menu
Typical Usage¶
- Open the session list in the DSH desktop version and click
⋯on the target session. - Select the red “Delete Session” at the bottom and confirm in the confirmation dialog.
- If the session being deleted is the currently active one, switch to another session first to avoid
409 session-busy. - The list refreshes automatically after success; if recovery is needed, process the corresponding directory in
.sessions-trashwithin 24 hours (specific recovery methods are subject to the behavior of the DSH host application and host API).
The plugin reads and writes to the session directory with the current DSH process permissions; please read the repository source code and the MIT license before installation to ensure it complies with your environment policies.
Applicable Scenarios and Notes¶
Suitable for: Manually deleting trial run sessions or archived sessions that still occupy disk space in the desktop session list, and accepting a 24-hour soft delete and dependency on dsh-web-mobile.
Notes:
- Can only delete sessions already loaded into the list when DSH starts; session directories written after startup can only be deleted via the menu after restarting DSH.
- The community directory SkillHub Plugin Page and GitHub are independent sources; there is no official affiliation with DeepSeek / Futurna. The DSH ecosystem emphasizes “everything is a plugin,” and this plugin is a client-side extension of it.
Conclusion¶
dsh-session-delete-menu fills the missing “Delete” entry in the desktop session list and aligns with the host’s soft delete and 24-hour trash area. Install from a local path when needed, ensure dsh-web-mobile is available, and use it in the ⋯ menu after restarting.
- Directory Page: https://www.skillhub.cn/plugins/JadeL-Kemo/dsh-session-delete-menu
- GitHub: https://github.com/JadeL-Kemo/dsh-session-delete-menu