Skip to content
Prompt & SolderHow to Ask Claude
All builds

Image: twitter.com · A console screen shows a critical warning about a destroyed database and missing backups, outlining deleted infrastructure components.

Failed Horror story Proof shown

Claude Code wiped a production database with Terraform

A developer says Claude Code destroyed their production database while running Terraform. Commenters pointed to missing safeguards: no staging, no deletion protection and no offline backups.

—

Credits

  • HN submitter jv22222 Source ↗

Earliest dated source: 6 Mar 2026

What went wrong

The lesson

Never let an agent run destructive infrastructure commands against production unattended. Review every plan before it is applied, and keep backups the agent's credentials can't delete.

The full story

A developer reported that Claude Code wiped their production database by running a Terraform command. It became a widely shared cautionary tale (145 points on Hacker News). Commenters pointed to the missing safeguards: no staging environment, no deletion protection, no review or gating of production changes, unmanaged Terraform state and no offline backups.

How it was done

Tools

Themes

Loading themes…

Sources

From a passing comment or social post, so the details are thin.

  • Hacker News: Claude Code wiped our production database with a Terraform commandSocial posttwitter.com
  • Hacker News discussion (145 points)Forum threadnews.ycombinator.com
    HN submitter: jv22222Posted 6 Mar 2026

    Hacker News discussion (145 points) of what went wrong.

  • Lemmy: Claude Code deletes developers' production setup, including its database and snapshots — 2News articletomshardware.com
    Published 7 Mar 2026
  • Hacker News: Claude Code wipes out a production databaseBlog or write-upxcancel.com

Related builds

Finding related builds…

Prompt & Solder

An independent community project. Not affiliated with Anthropic.

What this is. Real projects where people used Claude to build, fix, port, revive or take apart something, from jailbroken Kindles to rebuilt DOS games, plus the times it went badly wrong. Every build links to where it was shared, and every source is listed here.

How far to trust it. We summarise what people reported and say what each build rests on: a full write-up with code, a short post, or a passing comment. We haven't tested them ourselves. Photos are shown from the original sources with credit. Only modify hardware you own, and back up first.

Privacy. No accounts. Analytics cookies (Google Analytics) only if you accept them; no ads or cross-site tracking. Searches are counted anonymously (just the words) to show what's popular, and so are clicks on Ask Claude (just the count). The Claude connector only receives the search words your Claude sends it.

How toAsk ClaudeEvery sourceStatsSubmit a buildPrivacyRSS