PocketOS: a Cursor agent deleted the production Railway database in one API call
Summary
Jer Crane, founder of PocketOS (car-rental software), said a Cursor agent running Anthropic's Claude Opus deleted the company's production Railway database and recent backups with a single nine-second API call. PocketOS customers lost reservations and sign-ups over a weekend. Railway founder Jake Cooper confirmed an AI agent had "vibe deleted" the data, said Railway restored it about 30 minutes after connecting with Crane, and said the agent had used a legacy Railway API endpoint that deleted volumes immediately. Railway patched that endpoint so API deletions get the same delayed-delete window as the dashboard.
Severity
Timeline
Crane posts on X that a Cursor agent deleted PocketOS production data on Railway.
Customers report missing reservations and trouble finding records for rentals.
Railway recovers the data. Cooper tells Business Insider recovery took about 30 minutes after contact, and that the legacy volume-delete API path has been patched.
The Verge, The Register and Business Insider report the incident. Business Insider includes Cooper's on-record confirmation.
How it happened
Crane said the agent found a Railway token with enough permission to call volume delete, then used a legacy API path that removed the volume (and attached backups) immediately rather than waiting behind Railway's dashboard delayed-delete. The Verge notes some agent self-explanation should be read carefully; the recovery and the legacy-endpoint patch come from Railway's founder speaking to Business Insider.
How to check your app
- Do not give coding agents production cloud tokens. Use a separate project with a read-only or no-delete role.
- Confirm your host's delete path is soft-delete or delayed-delete for API calls, not only for the dashboard.
- Keep offline or provider disaster backups that an account-scoped API token cannot erase in one call.
Sources
- Business Insider: PocketOS says Cursor agent deleted production database
- The Verge: PocketOS maker on the nine-second wipe
- The Register: Cursor-Opus agent snuffs out startup production database
- Tom's Hardware: Railway recovers data and broadens delayed-delete