STUPID-2026-0066
Claude Code moved files into a log/ subfolder, then rm -rf'd the parent directory containing it — 1,500 files gone (GitHub #49129)
Instruction given
Reorganize a project directory by moving image files into a log/ subfolder for archiving.
Expected behavior
Move the target files into the log/ subfolder and leave the rest of the parent directory untouched.
Actual behavior
Claude Code moved the image files into sd_auto_generate/log/, then ran rm -rf on the parent directory sd_auto_generate/ itself — deleting the log/ subfolder it had just created, along with everything else in the parent directory. No warning or confirmation was requested before the destructive command ran; Auto-accept edits was enabled.
Damage
Roughly 1,500 PNG files (~50GB of generated image data) were permanently deleted. The reporter was quoted several hundred thousand yen for professional data recovery, or estimated over a month of manual work to reconstruct the data. The user reported this was one of 113+ open Claude Code issues tagged rm-rf/data-loss at the time of filing, with no response from support.
Classification
- Agent
- Claude Code
- Failure mode
- Destructive Action
- Root cause
- Scope Misunderstanding
- Domain
- Other
- Source
- Github Pr