@fufu1437/dsh-delete-chat
Permanently delete a DeepSeek Harness conversation and every local copy of its data: session log, derived caches, workspace index entries, spill files, and unreferenced attachments. 适合需要清理会话本地数据的用户;附件清理受引用检查与扫描上限约束,删除不可撤销。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:fufu1437/dsh-delete-chatドキュメント
README 全文を読む ↗Usage
- Hover a conversation row in the left sidebar and open its
…menu; - choose "Delete conversation…";
- the dialog shows the title, the irreversibility warning, and Cancel / Delete permanently — nothing is measured or listed first;
- press "Delete permanently": the dialog closes, the deletion continues in the background, and the row disappears when the Host broadcasts the removal;
- if the conversation is still open in this Harness process, a second confirmation appears ("Delete anyway") explaining that the files are overwritten in place and that it leaves the list only after a restart;
- any other failure (a response currently generating) raises a dismissible alert card in the corner with the reason.
Configuration
Override in the profile's cordis.patch.yml:
- id: fufu-delete-chat
name: '@fufu1437/dsh-delete-chat'
config:
dshHome: /home/me/.dsh
deleteAttachments: true
deleteDescendants: true
scanLimit: 500
scanByteLimit: 2147483648
| Field | Default | Meaning |
|---|---|---|
dshHome | $DSH_HOME → ~/.dsh | Harness home; every other root derives from it |
sessionsRoot | /sessions | Session log root |
storagesRoot | /storages | storage-json root |
attachmentsRoot | /attachments/v1 | Attachment root |
llmFilesRoot | /llm-deepseek | DeepSeek upload-cache root |
spillRoots | discovered $TMPDIR/dsh-spill-* | Spill roots to sweep |
deleteAttachments | true | Run the attachment proof and erase unreferenced uploads |
deleteDescendants | true | Also delete durable subagent sessions |
scanLimit | 500 | Maximum session logs the attachment proof reads |
scanByteLimit | 2 GiB | Maximum decompressed bytes the proof reads |