Claude Code

Claude Code's Delete Safety Prompt Now Covers External Drives: Update and Add a Safety Rule

Before 2.1.304, rm -r on a mounted drive skipped the safety prompt that protects /Applications. The update command, how to check your version, and a one-line rule that makes Claude ask before any rm

2min read
6numbered steps
4sections

Claude Code has a built-in safety prompt for dangerous deletes, like rm -rf on /Applications. Until version 2.1.304, rm -r on a mounted drive or a top-level folder (/Volumes, /media, WSL's /mnt/c) did not get it. Now it does.

Here's the update command, how to check your version, and an extra rule that makes Claude ask before any rm.

Free, for your email

Get the full setup steps + the copy-paste setup prompt

The rest of this guide (4 more sections) opens right here. The setup prompt, one paste into Claude that sets it all up, comes by email only. Use your real address.

50,000+ follow where these guides come from. No spam, unsubscribe in one click.

Read next