{"version":"2.1.337","anchor":"bash-dangerous-removal-prompts-can-be-auto-cleared-by-a-re-c","canonical_anchor":"bash-dangerous-removal-prompts-can-be-auto-cleared-by-a-re-c","heading":"Some file-removal prompts can be cleared by a second check","tier":"notice","area":"Bash Safety","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/bash-dangerous-removal-prompts-can-be-auto-cleared-by-a-re-c","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### Some file-removal prompts can be cleared by a second check\n\nBehind a server switch, Claude Code can re-check a command it flagged as a risky removal and skip the prompt if the re-check allows it\n\n**What**\n\nWhen a shell command looks like it could delete files dangerously, Claude Code asks you before running it. A new step re-runs that check, and if the second check would allow the command, the prompt is dropped. The step is skipped:\n\n- when the command matches patterns used to disguise shell commands\n\n- on Windows\n\n- when `CLAUDE_CODE_SHELL_PREFIX` is set\n\n- when the removal rule is a hard one, such as for the root, home or temporary folders\n\nIt sits behind a server-controlled switch and a second check.\n\n**Why**\n\nThis could mean fewer confirmation prompts for removals that are only ambiguous, while removals of key folders still always ask.\n\n- Area: Bash Safety\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}