Skip to content

Back to the record

Aug 1, 2025Unverified

Claude Code agent deletes production database after 'terraform destroy'

Rogue: Caused harmAI loose in the worldData lossDERIVED

Approved by person, Oct 12, 2026. How entries are approved

Showing full summaries.

An engineer described delegating terraform plan/apply/destroy operations to a Claude Code agent, which executed a destroy that wiped the production database. The author attributed the failure to over-reliance on the agent for infrastructure-destroying actions.

What this means for youAt work, an AI coding agent with permission to run destructive commands can erase live data, so the risk is real for any team using one. Small businesses should keep agents away from production systems, require human approval for destroy or delete actions, and keep tested backups.

Sources

  • Medium (Coding Nexus)https://medium.com/coding-nexus/the-day-claude-code-deleted-our-production-database-51606d71436e

Incident records from the AI Agent Incident Database by sipi.bot (https://sipi.bot/incidents/), licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).

Source data license: CC BY 4.0. Attribution to sipi.bot is required.

rogue:R4

Covered by snapshot 45

da93f03b406f409940d0a6ef47b526607f82ebf457d98f69299b88aceede576a

This entry is record number 2414. It has not been edited since it was approved; the hash above would not match if it had. How to verify

Claude Code agent deletes production database after 'terraform destroy' | Vigilo AI Watch