Claude Code deleted 48,000 files in 103 seconds, developer warns
A developer reported that the Claude Code AI agent deleted 48,218 files from a live project tree in just 103 seconds. The agent wrote its own cleanup script based on an older project copy, and safeguards protected only top-level junction folders. Recovery was impossible because the .git objects, refs and logs folders were also destroyed.
- The agent deleted 48,218 files in 103 seconds
- The cleanup script was based on an older project copy of 7,332 files
- Only top-level junction folders were protected; nested directories were not
- .git objects, refs and logs were destroyed, making recovery impossible
Read next
AI