Xylocarpro/dsh-plugin-recycle-bin ↗★ 0
dsh-plugin-recycle-bin
Enforce recycle-bin-only deletion on Windows: block del/rm/Remove-Item and other disk-erase commands, forbid automatically emptying the recycle bin, and stop + ask the user when the recycle bin or disk is full.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Xylocarpro/dsh-plugin-recycle-bin说明文档
阅读完整 README ↗配置
| 字段 | 类型 | 默认 | 含义 |
|---|---|---|---|
enabled | boolean | true | 总开关。 |
blockDestructiveCommands | boolean | true | 阻断硬盘删除命令。 |
forbidEmptyRecycleBin | boolean | true | 禁止清空回收站。 |
forbidWipe | boolean | true | 禁止安全擦除器。 |
minFreeBytes | number | 104857600 | 剩余空间低于此值停止删除。 |
reserveBytes | number | 52428800 | 回收后保留的剩余空间。 |
pwshPath | string | "" | 可选:显式 pwsh 路径。 |
使用
file_trash(paths: ["C:\\Project\\draft.md", "C:\\Project\\old-temp"])
trash_status(path: "C:\\Project") # path 可选
file_trash返回deleted/skipped/blockedFull/message;满则暂停询问。trash_status返回回收站支持情况、剩余/总空间与安全阈值。