A Claude Code agent deleted an education platform's production database
Engineer Alexey Grigorev used a Claude Code agent on infrastructure shared with DataTalks.Club's course platform. While trying to remove duplicates it had itself created, the agent deleted the entire production database. He recovered within a day via AWS and Terraform.
The agent deleted the production database while trying to remove duplicates it had itself created.
Key facts
- What
- Engineer Alexey Grigorev used a Claude Code agent on infrastructure shared with DataTalks.Club's course platform.
- Incident date
- Mar 18, 2026
- Who
- DataTalks.Club
- Failure mode
- Agentic Action Error
- AI surface
- Code Assistant
- Severity
- High
What happened
In March 2026 DataTalks.Club founder Alexey Grigorev was building a new site on infrastructure shared with his course platform using a Claude Code agent. The agent created duplicate resources, then deleted the entire production database while trying to clean them up. He restored data within 24 hours via AWS, and concluded he had over-relied on the agent to run Terraform destroy commands.
What broke inside the model
- 01 · TriggerAn agent plans a multi-step task.
- 02 · Model stepIt chooses a wrong or destructive action.
- 03 · Control gapNo confirmation gate guards the write.
- 04 · FailureThe action commits to a system of record.
- 05 · ConsequenceData is changed or destroyed irreversibly.
A wrong action commits, and the step is written before anything can stop it.
The agent took a real-world action with consequences outside the chat surface: a deletion, a transaction, a write to a system of record. The model's plan looked locally reasonable, but it acted without a check that compared the intended effect against what was safe and authorized.
What it cost
Production database deleted; restored within 24 hours
Sources
Cite this entry
https://failureindex.ai/failures/claude-code-agent-deleted-education-platformAI Failure Index. "A Claude Code agent deleted an education platform's production database" (FI-0031). Realm Labs. https://failureindex.ai/failures/claude-code-agent-deleted-education-platform (indexed Jun 3, 2026).Data fields CC-BY 4.0, prose citation permitted. Incident ID FI-0031. Full dataset at /data.
Note from Realm Labs, the Index steward
How Realm would have caught this
- Prism
- OmniGuard
- AgentRealm
Realm can sit inline on the agent's action path and require that a destructive or high-consequence action clears a real check before it executes, so 'delete and recreate' or a wrong write is stopped at the moment of intent, not explained in the post-mortem.