DeepSeekHarness-Session-Delete: Adding a Delete-Session Action to the DeepSeek Harness Sidebar

ansellwan/deepseekharness-session-delete

Sessions & MessagesVerified
Listed on 2026-10-12
Page last updated 2026-10-14

A DSH plugin that adds the missing Delete-session action to the DeepSeek Harness sidebar, with a red menu row, confirmation dialog, liveness guard, and true removal of registry entries and on-disk data.

DeepSeekHarness-Session-Delete is a DSH plugin that fills in the delete-session action DeepSeek Harness never shipped in its sidebar. It targets the annoyance of sessions that can only be archived and never truly cleared, since archived backlog piles up and becomes hard to manage. The plugin adds a red delete row to every session menu, greys it out while the session owns live work, asks for confirmation, then erases both registry entries and on-disk data; archived sessions can be removed too and the sidebar refreshes itself.

How to Install

install
npmdsh plugin --profile web add dsh-session-clean
Category
Sessions & Messages
Platform
DSH Plugin
Author
ansellwan
Distribution
Plugin

deepseekharness-session-delete Key Features

Red delete row in session menuGreys out while session is busyConfirmation dialog before deletingTrue removal from registry and diskArchived sessions deletable too
Listed on dsh-plugin.org

deepseekharness-session-delete Repo Summary

What Does It Do?

DeepSeekHarness Session Delete is a DSH plugin for DeepSeek Harness that adds the officially missing "Delete session" action to the sidebar. It solves the problem of sessions that can only be archived and never truly cleared: a red menu row, a confirmation dialog, and a real removal of both registry entries and on-disk data. Maintained by Ansellwan under the MIT license, it belongs to the UI & experience capability class.

Core Features

  • Delete-session entry: adds a red "Delete session" row to every session's ⋯ menu, right after the built-in pin, rename, fork, and archive rows.
  • Automatic greying out: the row disables itself while the session owns live work such as a running turn or a pending approval or answer, with a tooltip explaining why.
  • Confirmation dialog: warns before deletion that the action is permanent.
  • True deletion: the session is removed from the workspace registry (archive set, pin set, session list), and its durable directory plus projection cache entry are erased.
  • Archived sessions are deletable too: clearing out archived backlog is the plugin's main use case.
  • Self-refreshing sidebar: the list updates through DSH's storage-domain change events, with no restart required.

How to Use This Plugin?

After enabling it in the DSH desktop app, hover over any session in the sidebar and open the ⋯ menu to find the red "Delete session" row. Click it, confirm in the dialog, and the host re-checks liveness before deleting; if work is still active the request is rejected with a conflict status, so a stale UI can never race a just-started task. Deleting the session you are currently viewing works, but switching to another session first avoids a transient blank conversation view. Deletion is irreversible with no undo; if the optional SQLite search backend is enabled, deleted sessions may linger in the full-text index until it rebuilds, and the default install does not enable it. The plugin registers one local-only HTTP route protected by DSH's connection trust check, deletes data only under your own DSH home, and makes no network calls or telemetry.

How to Troubleshoot This Plugin?

  • The menu row is greyed out and cannot be clicked: the session still owns live work such as a running turn or a pending approval or answer; wait for it to finish, then delete.
  • The delete request is rejected with a conflict status: the host re-probes session liveness before deleting, so simply retry shortly after.
  • The conversation view is briefly blank after deleting: this is transient when removing the session you are currently viewing; switch to another session first to avoid it.
  • A deleted session still shows up in search: this only happens when the optional SQLite search backend is enabled; wait for the index to rebuild.

This page is an independent rewrite of the plugin's official README — for authoritative documentation and the latest changes, refer to the source: ansellwan/deepseekharness-session-delete. 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

DSH Plugin FAQ