{"version":"2.1.330","anchor":"rm-safety-check-covers-files-beside-unread-ones","canonical_anchor":"rm-safety-check-covers-files-beside-unread-ones","heading":"Safety check for rm commands looks at more parts of a command line","tier":"notice","area":"Permissions","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330\/e\/rm-safety-check-covers-files-beside-unread-ones","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330","markdown":"### Safety check for rm commands looks at more parts of a command line\n\nThe rm and rmdir safety check now also scans parts of a command line it has not fully worked out, and asks you when input is too long to check\n\n**Unclear.** It is not clear whether this check is behind a switch, or exactly which commands now prompt.\n\n**What**\n\nBefore Claude Code runs a command that deletes files with `rm` or `rmdir`, it checks whether it should ask your permission first. That check now also looks at parts of a command line it has not yet fully worked out. It also looks at parts that sit next to `eval` or `source`, which are shell commands that run other text as code. It scans these parts for files that `rm` would delete.\n\nIf the input is too long to check, Claude Code asks you instead of deciding on its own.\n\n**Why**\n\nYou may see permission prompts for deleting files more often in long or compound shell lines.\n\n- Area: Permissions\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: yes"}