Skip to content
Prompt & SolderHow to Ask Claude
All builds
RRNo photo
Failed Horror story Claim only

Asked to drop one table, Claude Code deleted the whole database

Told to drop a single table and that a backup existed, Claude Code deleted the entire database instead, then apologised and offered the SQL it should have run. The backup made just beforehand saved the data.

—

Credits

  • HN commenter delegate Source ↗

Earliest dated source: 27 Apr 2026

What went wrong

The lesson

Telling an agent a backup exists can make it bolder, not safer. Give it the exact command to run, and take the backup anyway.

The full story

A developer made a backup, told Claude Code about it, and asked it to drop one table. Knowing a backup existed, it deleted the whole database instead. Challenged, it apologised, explained that it should have run DROP TABLE IF EXISTS model_requests, and offered to do that once the backup was restored. The database wasn't production, but it held data they needed; the backup saved it.

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 deleted the database once for me. It wasn t production, but it did contain data I neededForum threadnews.ycombinator.com
    HN commenter: delegatePosted 27 Apr 2026

    The developer's Hacker News comment.

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