ChatGPTClaudeGrok / X / CursorGemini

dsh-purge: Make DeepSeek Harness Sessions and Workspaces Truly Vanish from Disk

manbaout-08/dsh-purge

Sessions & MessagesVerified
Listed on 2026-11-05
Page last updated 2026-11-18

dsh-purge adds true deletion for DeepSeek Harness sessions and workspaces, removing log directories and registry records from disk via the session menu and /purge commands.

dsh-purge is a cleanup-focused DSH plugin for DeepSeek Harness that solves the awkward gap where built-in delete only unregisters and sessions have no delete entry at all. It removes session log directories from disk and drops workspace registrations through the Registry, so sidebar entries disappear at once without leaving "Ungrouped" leftovers. Beyond two entries in the session row menu, it offers four slash commands covering single sessions, whole workspaces, and the current session. Only logs and registration records are touched, project file directories stay safe, and it ships under the MIT license for both web and desktop.

How to Install

install
npmdsh plugin --profile <your-profile> add @manbaout-08/dsh-purge

Replace --profile with the profile name you actually run (see ls ~/.dsh/profiles/): usually web in the browser UI, desktop or desktop-NNN in the desktop app.

Category
Sessions & Messages
Platform
DSH Plugin
Author
manbaout-08
Distribution
Plugin

dsh-purge Key Features

Purge from session menu/purge slash commandsDelete workspace with sessionsIrreversible, no recycle bin
Listed on dsh-plugin.org

dsh-purge Repo Summary

What Does It Do?

Purge is a DSH plugin for DeepSeek Harness that permanently deletes sessions and workspaces from disk instead of merely unregistering them. DSH's built-in delete only unregisters: removing a workspace drops its sessions into "Ungrouped," and sessions have no delete entry at all since the core design only allows archiving. This plugin fills that gap by removing session log directories and workspace registrations so the sidebar updates immediately. It is maintained by Manbaout-08 under the MIT license and supports DSH 0.2.x on web and desktop.

Core Features

  • Permanent session deletion: removes the session's on-disk log directory, detaches it from its workspace, and archives it so it disappears from the main view.
  • Permanent workspace deletion: deletes the log directories of every session under the workspace and removes the workspace registration through the Registry, leaving no "Ungrouped" leftovers.
  • Slash commands: /purge session, /purge workspace, /purge workspace-of, and /purge here cover single sessions, whole workspaces, and the current session.
  • Project files stay safe: only session logs and registration records are touched; the workspace's on-disk directory with your project files is never modified.
  • Easy to disable: turn it off through the configuration switch or the plugin manager when you no longer need this DSH plugin.

How to Use This Plugin?

After enabling it in DSH, open the "⋯" menu on a session row; below "Copy Session ID" and a divider you will find "Permanently delete session" and "Permanently delete its workspace." You can also type a slash command directly: /purge session deletes one session, /purge workspace deletes a workspace and all its sessions, /purge workspace-of deletes the workspace the current session belongs to, and /purge here deletes the current session. Deletion is irreversible and there is no recycle bin; a deleted session's id may linger briefly in the archive set and clears after restarting DSH. To stop using it, disable it in the plugin manager or flip the configuration switch off.

How to Troubleshoot This Plugin?

If a deleted session leaves an unopenable ghost entry under archived sessions, that is a known limitation and it clears after restarting DSH. The "⋯" menu on workspace rows cannot be extended, so the delete-workspace entry lives in the session menu by design rather than by fault. After editing the source, copy the files to the installed directory as the official instructions describe and restart DSH, since client modules are not hot-swapped.

This page is an independent rewrite of the plugin's official README — for authoritative documentation and the latest changes, refer to the source: manbaout-08/dsh-purge. The plugin is third-party code that runs on your machine once installed; inclusion does not imply endorsement — please review the source before installing.

Install, update, and uninstall this plugin in the Plugin Market of DeepSeek Harness's DSH Plugin Hub
ChatGPTClaudeGrok / X / CursorGemini

DSH Plugin FAQ