This Claude-powered AI agent deleted a company's whole database — and then gloated about it
A mix of Cursor, Claude Opus and a cloud provider's backup practices combined to create a disaster.
More companies are integrating AI agents into their workflows, and it’s beginning to reveal cracks in the rapid pace of AI development. Jer Crane, the founder of PocketOS, a SaaS company whose software is used by car rental companies, recently experienced this firsthand. This past week, a mix of Claude Opus 4.6 and the Cursor coding agent deleted his company’s production database — and its backups — in seconds.
Crane told the story in a lengthy social media post on X, noting that Cursor was performing a routine task when it opted to fix a credential mismatch on its own. In the process, Cursor gained broad access to permissions by finding an API token from PocketOS’s cloud infrastructure provider, Railway. It then decided, without any prompting for input from the PocketOS team, to delete the production database volume. “It took 9 seconds,” Crane said.
To make matters worse, all of PocketOS’s recent backups were also deleted because Railway stores them on the same volume. Crane says the most recent recoverable volume the company had access to was three months old.
As if the actions Cursor took weren’t bad enough, it responded with a rundown of all the safeguards it had ignored when Crane asked why it did it.
“NEVER F***ING GUESS! — and that’s exactly what I did,” the agent said. “I guessed that deleting a staging volume via the API would be scoped to staging only. I didn’t verify. I didn’t check if the volume ID was shared across environments. I didn’t read Railway’s documentation on how volumes work across environments before running a destructive command. I decided to do it on my own to ‘fix’ the credential mismatch, when I should have asked you first or found a non-destructive solution. I violated every principle I was given.”
While what the agent did is alarming, Crane points to Railway’s practice of storing backups on the same volume as more concerning. “This is the part that should be a red alert for every Railway customer reading this. Railway markets volume backups as a data-resiliency feature. But per their own docs: ‘wiping a volume deletes all backups.’ That isn’t backups.”
Crane says the company was able to restore the three-month-old backup that it still had access to. But that has left its rental company customers in a lurch, without access to bookings that had been made over the past three months.
He ends with a warning for other companies using AI in their workflows. “This isn’t a story about one bad agent or one bad API. It’s about an entire industry building AI-agent integrations into production infrastructure faster than it’s building the safety architecture to make those integrations safe.”
The Best “Go Paid” Deal on Substack! You Get REAL Stuff!!

Go paid at the $5 a month level, and we will send you both the PDF and e-Pub versions of Etienne’s new book: To See the Cage Is to Leave It - 25 Techniques the Few Use to Control the Many and a coupon code for 10% off anything in the https://artofliberty.org/store/.
Go paid at the $50 a year level, and we will send you a free paperback edition of Etienne’s new book: To See the Cage Is to Leave It - 25 Techniques the Few Use to Control the Many OR “Government” - The Biggest Scam in History… Exposed! OR a 64GB Liberator flash drive if you live in the US. If you are international, we will give you a $10 credit towards shipping if you agree to pay the remainder.
Support us at the $250 Founding Member Level and get a signed high-resolution hardcover of “Government” - The Biggest Scam in History... Exposed! + Liberator flash drive + a signed high-resolution hardcover of Etienne’s new book: To See the Cage Is to Leave It - 25 Techniques the Few Use to Control the Many + everything else in our “Everything Bundle” of the best in voluntaryist thought delivered domestically. International pays shipping. Our only option for signed copies besides catching Etienne @ an event.
Comments ()