AI Agent Hub
Back to plugins
🖥️

dsh-session-delete

Client Updated 2026.08.16

Run the following command in DeepSeek Harness:

dsh plugin install akira399/dsh-session-delete

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install akira399/dsh-session-delete in the DeepSeek Harness terminal to install this plugin; the source repository is https://github.com/akira399/dsh-session-delete , and restart dsh web after installation.

About this plugin

The official DSH client can only archive a session, which hides it from the sidebar while leaving the log files sitting on disk, fully retrievable through search or export. If you need a conversation to be truly gone from the machine, archiving is not enough. dsh-session-delete fills that gap by adding a Delete session entry right below Archive in each conversation row's menu. Once you confirm, the session log directory is recursively removed from the file system with no way to recover it.

The deletion pipeline handles several edge cases that commonly trip people up. If the target session is still actively running, the plugin first cancels the in-progress turn and then detaches the in-memory representation through the official store, preventing memory-level logs from resurrecting data after the files are gone. After deletion, the workspace seat and the global archive set in workspace.json are cleaned up in one pass, and the sidebar row disappears instantly without a page refresh. On the security side, requests are restricted to localhost, session IDs are strictly validated to block path traversal, and cross-session shared attachments are left intact. The plugin ships with zero third-party runtime dependencies, relying solely on Node built-ins and services injected by DSH.

It is a natural fit for three scenarios: clearing out experimental or throwaway conversations to reclaim disk space, removing sessions that contain sensitive content so the logs are genuinely erased from the machine, or any workflow where archiving (which is essentially hiding) does not satisfy the need for a permanent, irrecoverable removal.

Use Cases

  • Clean up experimental or throwaway conversations to reclaim disk space
  • Remove sessions with sensitive content to ensure logs are permanently erased
  • When archiving (hiding) is not enough and true permanent deletion is required

Best For

  • DSH users who prioritize privacy and want to fully erase sensitive records
  • Developers managing many sessions who need to reclaim disk space regularly
  • DSH Web users who need true physical deletion beyond archiving