AI Agent Hub
Back to plugins
🧠

dsh-plugin-session-delete

Memory Updated 2026.09.11

Run the following command in DeepSeek Harness:

dsh plugin install chuling-lingling/dsh-plugin-session-delete

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

Run dsh plugin install chuling-lingling/dsh-plugin-session-delete in your terminal, then restart dsh web to activate the plugin; the source repository is at https://github.com/chuling-lingling/dsh-plugin-session-delete

About this plugin

The dsh 0.1 sidebar offers only rename, fork, and archive—there is no delete route at the API level, and the JSONL persistence layer is strictly append-only. Archiving merely hides the conversation; the files stay on disk forever. This plugin adds a Trash capsule button right next to the Session log control in the session header. One confirmed click removes the current session from both in-memory state and its on-disk directory, and every open page receives the disposal event in real time. Restarting dsh will not resurrect it.

Under the hood, each delete request enters a small internal queue: the browser half validates the session ID against a white-list (prefix plus restricted character set) and writes it to a pending list, then the host half processes entries one by one—splicing the session out of the repository, broadcasting the disposal event to all connected clients, and finally deleting the directory. Freshly created sessions whose directories may not have hit disk yet get a delayed re-check. The queue is capped at 50 entries per batch, and every failure degrades to a log line rather than stalling the pipeline. Deletion is irreversible; the confirmation dialog is the only safety net.

Ideal for anyone who wants to permanently clear dsh sessions rather than letting archived data accumulate endlessly on disk—switching between multiple projects, sharing a development machine, or simply expecting a Trash click to mean truly gone. The button blends into the native header toolbar, so no settings-page digging or shell scripts required.

Use Cases

  • Permanently removing old conversations instead of just archiving them
  • Cleaning up personal session data on a shared development machine
  • Tidying up leftover sessions after switching between projects

Best For

  • Developers who frequently create and clean up dsh sessions
  • dsh users who care about disk usage and conversation privacy
  • Lightweight users who prefer a single click over digging into settings