All shelves / Mods / Safety
safe-delete
By charlie947
safe-delete is a Claude Code safety mod by charlie947.
Moves the files Claude deletes to the Bin instead, toasts a receipt, and /undo-delete puts the last batch back.
DrawsHolds a command
Install
The marketplace name is charlie-free-mods.
claude plugin marketplace add charlie947/mod-maker claude plugin install safe-delete@charlie-free-mods
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.1.2
- Repo stars
- 6
- Last change
- 2026-10-03
What it can reach
- Draws in the session
- Holds a command
Claude Code 2.1.287 or newer. Restart Claude Code after installing. The author says it catches the delete commands Claude types, rm, rm -r, rm -rf, find -delete, and git clean, but not a delete inside a script Claude runs or one you run yourself. It works on macOS and Linux. On Windows it stops the delete and asks you to do it by hand.
The marketplace name is charlie-free-mods. Add charlie947/mod-maker. The author's install block also installs mod-maker, a separate plugin this mod does not need.
Demo

What it hooks into
prompt.submitWhen you send a prompttool.callAround a tool call, where it can hold oneBashsession.startWhen a session startscommand.runWhen you run its slash command/undo-delete
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Slash commands 1
/undo-deletePut the last batch of files safe-delete moved to the Bin back where they were
Files
The author's source, 3 files. They load when you open them.
Facts
- Author
- charlie947
- Category
- Safety
- Marketplace
- charlie-free-mods
- Folder
- plugins/safe-delete
- Version
- 0.1.2
- Repo stars
- 6
- Last change
- 2026-10-03
- Language
- TypeScript
- Files
- 7