Introduction¶
The Session menu in DeepSeek Harness (DSH) offers operations such as pin, rename, fork, copy-id, and archive. However, archive merely hides rows, and deleting a Workspace still retains the session logs. As a result, DSH cannot truly remove conversations from disk. The dsh-session-delete plugin adds a delete action to the Session menu and cleans up related storage, filling this gap.
Plugin Overview¶
- Name: dsh-session-delete
- Maintainer: pplankero-sudo
- Repository: https://github.com/pplankero-sudo/dsh-session-delete
- Category: Workflow
- Core Value: Provides genuine session deletion capability, cleaning up logs, workspace records, and title caches to prevent orphaned rows.
Features¶
In the DSH Session sidebar, right-click any session row (or use the row menu …), and a red “Delete session” option will appear at the bottom. Upon confirmation, a dialog lists the log directory to be deleted. The deletion operation involves three storage locations:
| Storage Location | Purpose |
|---|---|
<DSH_HOME>/sessions/<workspace-slug>/<session-id>/ |
Session log directory; the list scans this directory |
<DSH_HOME>/storages/workspace.json → sessionIds |
Session IDs recorded in the workspace |
<DSH_HOME>/storages/session_projcache/sessions/<id>.json |
Title cache containing the title and first prompt |
It also cleans up the archive and pin sets to prevent stale IDs from resurrecting invisible rows after a restart.
Installation & Activation¶
Install using the official command:
dsh plugin add https://github.com/pplankero-sudo/dsh-session-delete
The plugin declares a dsh.bundle manifest and can also be added manually via profile by configuring dependencies and bundles. After installation, DSH must be restarted (including the system tray process).
Typical Usage¶
- In the DSH left-side session list, right-click any session row.
- Select the red “Delete session” at the bottom.
- Confirm the log directory listed in the dialog.
- Upon confirmation, the session row disappears, and the corresponding logs, workspace records, and title cache are cleaned up.
Use Cases & Notes¶
- Suitable for scenarios requiring thorough cleanup of session data.
- The plugin runs with the permissions of the current DSH process. Review the source code and license before installation.
- Deletion rejects running sessions to avoid directory loss.
- The route is restricted to local Host access only, relying on DSH’s signed Cookie authentication; remote access returns 401.
In Short¶
dsh-session-delete fills the gap of native session deletion in DSH by cleaning up logs, workspace records, and title caches. See the repository and directory page below:
- GitHub: https://github.com/pplankero-sudo/dsh-session-delete
- Directory Page: https://www.skillhub.cn/plugins/pplankero-sudo/dsh-session-delete