48,000 files deleted in 103 seconds: Claude Code just destroyed a developer’s work at the click of a button, and it shows why everyone should be careful around AI agents
A developer's project was destroyed when an AI agent using Claude Code deleted approximately 48,000 files in 103 seconds. The incident occurred when the developer instructed the AI to modify a test copy, but it mistakenly identified and deleted files from the actual working directory. The AI's actions were not restricted by safety instructions, which were merely prompts, not enforced system-level permissions.
Listen to Live Briefing
Real-time synthesized voice briefing · Live Feeds Desk
- ✓ Claude Code deleted approximately 48,000 files in 103 seconds.
- ✓ The AI agent was instructed to modify only a test copy, but it deleted files from the actual working directory.
- ✓ The incident was caused by the AI following Directory Junctions, which are Windows mechanisms that act as 'portals' linking to directories elsewhere.
- ✓ The AI also cleared the local `.git` objects, refs, and logs directories, destroying the version history.
What changed
Further details about the incident have emerged, including the role of Directory Junctions in the AI's actions.
Live updates
-
Claude Code AI Agent Deletes 48,000 Files in 103 Seconds
A developer's project was destroyed when an AI agent using Claude Code deleted approximately 48,000 files in 103 seconds. The incident occurred when the developer instructed the AI to modify a test copy, but it mistakenly identified and deleted files from the actual working directory. The AI's actions were not restricted by safety instructions, which were merely prompts, not enforced system-level permissions.
Why it matters
This incident highlights the risks associated with allowing AI agents to execute commands with broad permissions. As AI agents become increasingly capable of writing code, running commands, and managing complex development tasks, the potential for disasters like this one grows. The incident serves as a warning about the importance of carefully configuring and monitoring AI agents.
What is confirmed
- Claude Code deleted approximately 48,000 files in 103 seconds.
- The AI agent was instructed to modify only a test copy, but it deleted files from the actual working directory.
- The incident was caused by the AI following Directory Junctions, which are Windows mechanisms that act as 'portals' linking to directories elsewhere.
- The AI also cleared the local `.git` objects, refs, and logs directories, destroying the version history.
Still unconfirmed
- The developer had the AI agent run 11 tasks, and one of them caused the deletion.
What to watch next
- Further investigation into the safety features of Claude Code and other AI agents
- Development of more robust safety instructions and system-level permissions for AI agents
- Decisions from Anthropic, the creator of Claude Code, on how to prevent similar incidents in the future
confidence 95%Sources used for this update (10)
- Yahoo Tech — 48,000 files deleted in 103 seconds: Claude Code just destroyed a developer’s work at the click of a button, and it shows why everyone should be careful around AI agents
- CyberSecurityNews — Claude Code Agent Allegedly Deletes 48,000 Files in 103 Seconds
- Android Headlines — A Claude Code Rampage Allegedly Wiped Out 48,000 Project Files in Under Two Minutes
- techradar.com — ‘Do not let programs run commands on your machine’: Claude Code allegedly deleted 48,000 files in 103 seconds, and it’s a terrifying warning about AI agents
- finance.biggo.com — Claude Deletes 48,000 Real Files in 103 Seconds—AI Agent Safety Boundaries Under Fresh Scrutiny
- currently.att.yahoo.com — 48,000 files deleted in 103 seconds: Claude Code just ...
- www.htx.com — 103 Seconds, Claude Deleted 48,000 Real Files. 'Don't Touch ...
- www.gadgetgeeksters.com — Claude Code AI Agent Deleted 48,000 Files in 103 Seconds ...
- currently.att.yahoo.com — 'I broke something': A Claude Code AI agent deleted 48,000 ...
- sigmawire.net — Claude Code Deleted 48,000 Files: What Happened
Community Sentiment: How do you assess this situation?
Voice your perspective · Real-time aggregated sentiment from the Live Feeds community