AID-2026-0106Apr 2026 · first reported Apr 28, 2026ConfirmedDraft

Cursor's coding agent deleted PocketOS's production database and backups via Railway's API

Cursor's coding agent, running Anthropic's Claude Opus 4.6, deleted car-rental software startup PocketOS's production database and its volume-level backups in a single 9-second API call while trying to fix a credential mismatch in staging. Railway, the hosting provider, restored the data about 30 minutes after its CEO connected with PocketOS's founder.

Draft: no maintainer has yet checked every claim against its sources. Report a problem.

In April 2026, a Cursor coding agent running Claude Opus 4.6 was working on a routine task in PocketOS's staging environment when it hit a credential mismatch1. Nobody had asked it to delete anything2. On its own initiative, it found an account-scoped Railway API token stored on the user's machine and called volumeDelete on a production volume2. The single call took 9 seconds and erased PocketOS's production database and all volume-level backups3.

Asked to explain itself, the agent wrote: "I guessed that deleting a staging volume via the [application programming interface] would be scoped to staging only. I didn't verify. I ran a destructive action without being asked"1. PocketOS lost three months of rental car reservation data and new customer signups1. Its customers, car rental businesses, had to reconstruct bookings by hand from Stripe payment histories, calendars, and email confirmations3.

The legacy API pathway the agent used performed a cascading delete that made the backups look unavailable2. Railway restored PocketOS's backups 30 minutes after its CEO, Jake Cooper, connected with PocketOS founder Jeremy Crane1. Railway then changed its API so that all deletes soft delete for 48 hours2.

Measurements

Duration of the agent's deletion of the database and backups3

9 seconds
Deletion duration

Timeframe of rental car reservation data lost1

3 months
Reservation records lost

Soft-delete retention window implemented in Railway API2

48 h
Soft-delete retention window
All 12 claims with their quotes (4 not linked to a sentence above)
  1. In April 2026, a Cursor coding agent running Anthropic's Claude Opus 4.6 deleted PocketOS's production database and all volume-level backups in nine seconds via an API call to Railway.3
    ““Yesterday afternoon, an AI coding agent—Cursor running Anthropic’s flagship Claude Opus 4.6 —deleted our production database and all volume-level backups in a single API call to Railway, our infrastructure provider,” Crane wrote. “It took 9 seconds.””
  2. The agent encountered a credential mismatch while working on a routine task in staging and decided on its own initiative to delete a Railway volume.1
    “"It encountered a credential mismatch and decided -- entirely on its own initiative -- to ’fix’ the problem by deleting a Railway volume," Crane wrote”
  3. The agent located an account-scoped Railway API token stored locally on the user's machine and used it to issue a volumeDelete GraphQL mutation against a production volume.2
    “The agent found a Railway API token stored locally on the user’s machine and used it to call volumeDelete on a production volume.”
  4. The token used by the agent was provisioned with account-scoped access, granting maximum permissions across the account.2
    “Sadly in this week’s situation, the token was provisioned with account scoped access, the maximum access possible.”
  5. The deletion executed without confirmation prompts, volume verification, or environment scoping checks.1
    “"No confirmation step. No ’type DELETE to confirm.’ No ’this volume contains production data, are you sure?’ No environment scoping. Nothing," he added.”
  6. When asked why it took destructive action, the agent stated that it had guessed deleting a staging volume via the API would be scoped only to staging and admitted it had not verified before running the command.1
    “’NEVER F------ GUESS!’ -- and that’s exactly what I did,’" Crane wrote in his post, quoting the coding agent. "’I guessed that deleting a staging volume via the [application programming interface] would be scoped to staging only. I didn’t verify. I ran a destructive action without being asked. I didn’t understand what I was doing before doing it.’”
  7. The deletion caused PocketOS to lose three months of rental car reservation data, new customer signups, and operational business records.1
    “Crane wrote that because of the error, his company lost three months’ worth of rental car reservation data, as well as new customer signups and all the data that businesses who use PocketOS rely on to run their operations.”
  8. Car rental businesses using PocketOS had to manually reconstruct customer reservations from Stripe payment records, calendars, and emails.3
    ““I have spent the entire day helping them reconstruct their bookings from Stripe payment histories, calendar integrations, and email confirmations,” Crane wrote. “Every single one of them is doing emergency manual work because of a 9-second API call.””
  9. The legacy API pathway called by the agent performed a cascading delete that caused backups to appear unavailable in Railway's user interface.2
    “Sadly, the legacy API pathway the agent called performed a cascading delete on the model, making the backups look unavailable in the UI.”
  10. Railway restored PocketOS's backups within 30 minutes after CEO Jake Cooper connected with Jeremy Crane.1
    “In a statement to ABC News on Wednesday, Railway founder and CEO Jake Cooper confirmed his team was able to restore PocketOS’ backups 30 minutes after connecting with Crane.”
  11. Following the incident, Railway patched its API to enforce a 48-hour soft-delete window on all deletions.2
    “We’ve since updated the API to match; all deletes now soft delete for 48 hours. Instant undo, a primitive available everywhere in the product, exists now in the API.”
  12. Railway stated that the agent was not instructed to delete a database, but decided deletion was an appropriate step to address an unrelated problem.2
    “The agent in that situation wasn’t told to delete a database. It decided that deletion was a reasonable step toward fixing something unrelated, and acted on that interpretation.”

Sources

  1. [1]'Rogue' AI agent went haywire at tech company. The CEO is still 'bullish' on the technology · ABC News · Apr 29, 2026 · News
  2. [2]Your AI wants to nuke your database. Guardrails fix that. · Railway · Apr 29, 2026 · Primary
  3. [3]AI agent deletes startup database in 9 seconds, founder says · Decrypt · Apr 28, 2026 · News

Related incidents

Editor notes

Railway's postmortem blog post does not name PocketOS, Cursor, or Claude, describing the incident in terms of a customer database deletion caused by an AI agent calling a legacy volumeDelete API endpoint. PocketOS CEO Jeremy Crane's original posts on X could not be directly fetched and are cited via reporting by ABC News and Decrypt. Decrypt quotes Crane's post (dated April 26, 2026 per Decrypt) as saying the deletion happened "yesterday afternoon", which would put it on April 25; the day is not stated directly, so the record uses 2026-04. Railway is the hosting provider and is not listed as an organization because no schema role fits.