Introduction¶
DeepSeek Harness (DSH) manages multiple sessions by workspace. The sidebar typically offers operations such as “Pin”, “Rename”, “Fork”, and “Archive”, but the built-in menu does not provide an entry to “completely remove a specific entry from both disk and memory.” When dealing with experimental sessions, mistakenly created duplicates, or needing to clean up log directories, users often have to manually locate directories under <DSH_HOME>/sessions/ or leave them in the list indefinitely, creating cognitive overhead. The following introduces the community plugin dsh-plugin-simple-delete-session: it adds a “Delete Session” option to the “…” menu of the session row. After a secondary confirmation, it deletes only the currently selected session without affecting other sessions or the workspace.
About This Plugin¶
dsh-plugin-simple-delete-session is published by the maintainer WovenJunct and is categorized under Memory-related capabilities in the SkillHub Plugin Directory. The repository is located on GitHub (MIT License, current package version 0.2.1). Its positioning in one sentence: adds an unrecoverable hard delete to the DSH sidebar session menu, targeting only the log directory and session table entry of this specific session, without touching the workspace directory, attachments, or DSH configuration.
The plugin integrates via public Cordis services and official UI slots without modifying the DSH installation directory; the desktop client and dsh web share the same implementation. The package.json declares a DSH engine requirement of >=0.1.0-rc.6; the README records that it has been tested and passed on DSH Desktop 0.2.0-rc.1 (Windows).
Core Functions¶
Menu Entry and Confirmation Flow¶
- Click ”…” on a session row in the sidebar. Appearing after the built-in Pin, Rename, Fork, and Archive options, a red “Delete Session” button will be visible.
- A secondary confirmation popup appears: displaying the session title and session ID, with a red warning stating that the deletion is irreversible. You must check “I understand: The session cannot be recovered after deletion” to enable the delete button.
- If the session is still running, the dialog will provide an additional notice, and the confirmation button text will change to “Stop and Delete”.
Deletion Scope and Navigation¶
- Complete Deletion: Removes the log directory for the session under
<DSH_HOME>/sessions/<project>/<session-id>/and clears it from the in-memory session table, workspace accounting, archive, and pinned sets. The sidebar immediately stops displaying the item. - Delete Only This Entry: Other sessions, the workspace itself, project directories, attachments, and DSH configurations remain unaffected.
- If Deleting the Currently Open Session: The interface automatically switches to another recently used session; if no other sessions exist, it returns to the “New Session” empty state, rather than staying on the deleted session’s page.
- UI text supports both Chinese and English, following the DSH interface language.
Installation and Enablement¶
Prerequisites: DSH Desktop is installed or dsh web is available. Replace --profile in the commands according to your actual profile (usually desktop for the desktop client).
Install from GitHub¶
dsh plugin --profile desktop add github:WovenJunct/dsh-plugin-simple-delete-session
If using a fork repository, replace WovenJunct with your GitHub username.
Install from Local Directory¶
dsh plugin --profile desktop add file:<absolute-path>/dsh-plugin-simple-delete-session
On Windows, you can also execute the following in the repository root directory:
install.cmd rem Install to desktop profile
install.cmd web rem Install to web profile
Mandatory Steps After Installation¶
- Restart DSH (The Host side needs to register deletion-related interfaces upon startup).
- Refresh the page (e.g., Ctrl+Shift+R).
- Confirm that Delete Session appears at the bottom of the ”…” menu for any session row in the sidebar.
Uninstallation:
dsh plugin --profile desktop remove dsh-plugin-simple-delete-session
After modifying source code locally: DSH copies a snapshot to the profile when installing plugins. You need to re-execute dsh plugin add (or sync changes to node_modules/dsh-plugin-simple-delete-session/ under the profile) and restart DSH for the changes to take effect.
Typical Usage¶
No additional configuration files are required. The daily workflow is as follows:
- Select the session to be cleaned up in the sidebar and open ”…” -> Delete Session.
- Verify the title and ID in the dialog and check the confirmation item; if the session is running, select Stop and Delete as prompted.
- After confirmation, the session disappears from the list; if the current session was deleted, the interface automatically switches to another session or the new session page.
Scenarios and Notes¶
Target Audience: DSH users who need to regularly clean up experimental sessions, mistakenly created forks, or conversation logs that are no longer needed. Unlike “Archive,” this plugin performs a hard delete, removing the log directory as well.
Permissions and Security: The plugin runs under the current DSH process permissions, and deletion operations target session data on your local machine (or current Host). It is recommended to review the repository source code and the MIT License before installation. SkillHub and similar platforms are community directories; they have no official affiliation with DeepSeek / Hithink RoyalFlush and are not official app stores.
Compatibility: Node engine requirement is >=20; DSH version must satisfy >=0.1.0-rc.6. Deletion is unrecoverable; please back up the directory or export necessary content yourself before deleting important sessions.
Conclusion¶
dsh-plugin-simple-delete-session integrates “deleting a session” into the sidebar menu: secondary confirmation, deletion of only the target session, and automatic navigation when deleting the current session. It is simple to implement and has clear boundaries. For more information, see the SkillHub Directory Page and the GitHub Repository.