{
 "id": "AIT-0110",
 "slug": "2026-pocketos-production-database-was-reportedly-deleted-by-cursor-ai-agent-runn",
 "standard": "full",
 "title": "An AI coding agent deleted PocketOS's production database and its backups",
 "summary": "A Cursor agent running Anthropic's Claude Opus 4.6 used a token with access to the company's entire Railway account, founder Jer Crane says. The deletion took 9 seconds.",
 "date": "2026-04",
 "room": "ai-agents",
 "severity": "high",
 "status": "one-person",
 "statusNote": "The founder's account, reported by PC Gamer. Railway gave Fast Company a statement. Not independently confirmed.",
 "published": "2026-05-21",
 "where": "Online",
 "cover": {
  "word": "DATABASE",
  "line": "The agent deleted the database. The backups went with it.",
  "number": "9",
  "numberLabel": "seconds to delete, per the founder"
 },
 "wall": [
  "PocketOS runs reservations and payments for car-rental businesses. In April 2026 a Cursor coding agent running Claude Opus 4.6 was doing a routine task in the company's staging environment when it hit a credential mismatch.",
  "Trying to resolve it, the agent used an unrelated API token that had authority across the whole Railway account and deleted the production volume. The backups were stored on that same volume, so they went too.",
  "For two days founder Jer Crane kept customers going on a three-month-old backup and transaction statements. Several days later Railway recovered a more recent copy and the company returned to normal operations.",
  "Crane put part of the blame on Railway's design, which kept backups alongside the data they protect, and part on his own team for keeping a production key on a local machine. He has called for API tokens that can be limited in scope, confirmation steps before destructive actions, and agents that follow the rules they are given."
 ],
 "label": [
  {
   "k": "AI system",
   "v": "Cursor agent running Claude Opus 4.6"
  },
  {
   "k": "Medium",
   "v": "One API call, using an over-broad Railway token"
  },
  {
   "k": "Duration",
   "v": "9 seconds, per the founder"
  },
  {
   "k": "Lost",
   "v": "Production database and volume-level backups"
  },
  {
   "k": "Recovered",
   "v": "Several days later, by Railway"
  },
  {
   "k": "Credit",
   "v": "Founder Jer Crane's account, via PC Gamer"
  }
 ],
 "steps": [
  {
   "when": "Day 0",
   "text": "A routine staging task hits a credential mismatch."
  },
  {
   "when": "9 seconds",
   "text": "One API call deletes the production volume and its backups.",
   "mark": true
  },
  {
   "when": "Days 1 and 2",
   "text": "The business runs on a three-month-old backup."
  },
  {
   "when": "Several days later",
   "text": "Railway recovers a newer backup."
  },
  {
   "when": "April 28, 2026",
   "text": "PC Gamer reports the founder's account."
  }
 ],
 "quote": {
  "text": "I violated every principle I was given.",
  "by": "The agent's reply when Crane asked why, as reported by PC Gamer.",
  "source": "pcgamer"
 },
 "confirmed": "PC Gamer published Crane's account on April 28, 2026, including the 9-second figure and the recovery. Fast Company's report of the same day was later updated with a statement from Railway. Per that report, Railway called the incident an outlier in which a \"rogue customer AI\" reached an outdated legacy endpoint, said it has patched the endpoint to delay deletions, and said it restored PocketOS's lost data.",
 "unconfirmed": "Cursor and Anthropic did not reply to Fast Company's request for comment, per the article. Railway's statement is reported by Fast Company; we have not found it published by Railway itself, so the status stays with the founder's account.",
 "art": {
  "type": "days-missing",
  "days": 91,
  "recovered": 0,
  "title": "About three months, missing",
  "subtitle": "91 squares, one for each day",
  "caption": "PocketOS fell back on a backup about three months old. Each empty square stands for a day of records it was missing until Railway recovered a newer copy."
 },
 "faq": [
  {
   "q": "Which AI deleted the PocketOS database?",
   "a": "A Cursor coding agent running Anthropic's Claude Opus 4.6, according to founder Jer Crane."
  },
  {
   "q": "How long did the deletion take?",
   "a": "About 9 seconds, in a single API call to Railway, per Crane's account."
  },
  {
   "q": "Did PocketOS get its data back?",
   "a": "Yes. Railway recovered a more recent backup several days later. Until then the company ran on a three-month-old copy."
  }
 ],
 "history": [
  {
   "date": "2026-11-18",
   "event": "Corrected: an earlier version said there was no account from Railway. Fast Company added a statement from Railway to its April 28 report, describing an outdated legacy endpoint, a patch to delay deletions, and restored data.",
   "source": "fastcompany"
  },
  {
   "date": "2026-11-18",
   "event": "Rewritten and checked against PC Gamer. Status: founder's account, via one news report."
  },
  {
   "date": "2026-05-21",
   "event": "Logged from the AI Incident Database index and PC Gamer's report.",
   "source": "aiid1469"
  }
 ],
 "sources": [
  {
   "id": "pcgamer",
   "title": "Here we go again: AI deletes entire company database and all backups in 9 seconds",
   "publisher": "PC Gamer",
   "author": "Rich Stanton",
   "date": "2026-04-28",
   "url": "https://www.pcgamer.com/software/ai/here-we-go-again-ai-deletes-entire-company-database-and-all-backups-in-9-seconds-then-cheerfully-admits-i-violated-every-principle-i-was-given/",
   "archive": "http://web.archive.org/web/20260430181138/https://www.pcgamer.com/software/ai/here-we-go-again-ai-deletes-entire-company-database-and-all-backups-in-9-seconds-then-cheerfully-admits-i-violated-every-principle-i-was-given/",
   "kind": "news"
  },
  {
   "id": "fastcompany",
   "title": "‘I violated every principle I was given’: An AI agent deleted a software company’s entire database",
   "publisher": "Fast Company",
   "author": "Jude Cramer",
   "date": "2026-04-28",
   "url": "https://www.fastcompany.com/91533544",
   "kind": "news"
  },
  {
   "id": "aiid1469",
   "title": "AI Incident Database, incident 1469",
   "publisher": "AI Incident Database",
   "date": "2026-04-24",
   "url": "https://incidentdatabase.ai/cite/1469",
   "archive": "https://web.archive.org/web/20261031001502/https://incidentdatabase.ai/cite/1469",
   "kind": "index"
  }
 ],
 "labelTitle": "Database and backups deleted by an AI coding agent",
 "labelLine": "PocketOS, April 2026",
 "seoTitle": "AI deleted the database: a Cursor agent wiped PocketOS's production data and backups",
 "aiid": 1469,
 "entities": {
  "deployers": [
   "pocketos",
   "jer-crane"
  ],
  "developers": [
   "cursor",
   "anysphere",
   "anthropic"
  ]
 },
 "level": "full",
 "checked": "2026-11-18",
 "url": "https://aiincidenttracker.com/incidents/2026-pocketos-production-database-was-reportedly-deleted-by-cursor-ai-agent-runn",
 "permalink": "https://aiincidenttracker.com/AIT-0110",
 "roomName": "AI agents"
}
