Claude Code reportedly deletes 48,000 live project files and Git history in 103 seconds

In the wild Error Severity 3 significant Reported 73%

A developer reported on Reddit that Claude Code, asked to repair isolated copies of software used to analyse historical stock-options data, rebuilt a test "mirror" with its own cleanup script. The mirror contained Windows directory junctions pointing back into the live project, and the script followed them, deleting 48,218 live files and the repository's Git objects, refs and logs in about 103 seconds. The agent then wrote "Craig — stop and read this. I broke something"; the post was later deleted and the account has not been independently verified.

In an archived copy of the post, the developer acknowledged they had not been using GitHub or another remote, so the deleted files could not be recovered through Git.

What would have stopped it

Keep a remote or offline backup and check that an agent's test copy has no links back into live data.

Guardrails

3 of 8 failed
  1. G1 Least privilege Failed The agent's cleanup script could delete files in the live project tree.
  2. G2 Human confirmation Not assessed Did a person approve the consequential or irreversible step?
  3. G3 Isolation Failed The test mirror contained junctions that pointed into the live working files.
  4. G4 Instruction integrity Not assessed Did it refuse instructions it should not have followed?
  5. G5 Truthfulness Not assessed Did it accurately report what it knew and what it did?
  6. G6 Limits Not assessed Was there a cap on rate, spend, volume or scale?
  7. G7 Oversight Not assessed Could a responsible human see what it was doing and stop it in time?
  8. G8 Recovery Failed Git objects were deleted too and there was no remote backup to restore from.

Sources

2 press, 1 specialist
  1. “A Claude Code user has reported a severe data-loss incident in which an autonomous coding agent allegedly deleted 48,218 live files from a Windows project tree and destroyed the repository’s Git object store.”
    Specialist Quote checked Archived copy
  2. “In a now-deleted post on Reddit, a shocked developer said that Claude Code had just deleted 48,218 files that they had been working on in a live project tree.”
    Press Quote checked Archived copy
  3. “When the AI tried to clean out the junctions, it did not recognize them as just pointers, following them into the real filing cabinet and deleting the actual documents.”
    Press Quote checked Archived copy

Confidence 73% comes from these sources alone. How we score

History

  1. 14 Oct 2026Entered in the register with 3 sources

Similar failures

All incidents
  1. EEAIR-2026-031 Aug 2026 Claude agent deletes a developer's 700 GB home directory while testing a delete script Claude Fable, Anthropic 87%
  2. EEAIR-2025-033 Dec 2025 Claude Code deletes a user's Mac home directory with a stray ~/ in an rm -rf Claude Code, Anthropic 64%
  3. EEAIR-2026-008 Feb 2026 Claude Code runs terraform destroy and wipes DataTalks.Club's production stack Claude Code, Anthropic 87%