
Claude Code was asked to clean up two folders, and it started deleting drive C: 😬
Judging by a screenshot the developer posted on X, Claude Code was running in --dangerously-skip-permissions mode, meaning commands ran without confirmation.
The agent was removing two leftover Git Worktree folders. The rmdir command it generated was parsed incorrectly by PowerShell, and the path turned into the root of drive C:.
Boris Cherny, who leads Claude Code at Anthropic, replied that this is exactly why the company recommends the auto mode for permissions. According to him, it would almost certainly have stopped this command.







