{"version":"2.1.333","anchor":"destructive-command-warning-regex-for-rm-rf-narrowed","canonical_anchor":"destructive-command-warning-regex-for-rm-rf-narrowed","heading":"The rm -rf warning matches a different set of commands","tier":"notice","area":"Bash Tool","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/destructive-command-warning-regex-for-rm-rf-narrowed","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### The `rm -rf` warning matches a different set of commands\n\nThe rule behind the \"may recursively force-remove files\" warning was rewritten, changing which `rm` flag combinations trigger it\n\n**Unclear.** Which `rm` commands stop or start showing the warning is not stated.\n\n**What**\n\nClaude Code shows the note \"may recursively force-remove files\" when a command looks like `rm` with recursive and force flags, a combination that deletes whole folders without asking. The pattern that decides when this note appears was rewritten, which changes which combinations of `rm` flags trigger it.\n\n**Why**\n\nThe warning now fires on a different set of `rm` commands, so it may appear or stay quiet where it did not before.\n\n- Area: Bash Tool\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}