Ackuity Request assessment

Video

Can an AI Agent Delete Your Production Database?

Yes. A coding agent with enough access can make a destructive change in production. Railway confirmed that an AI coding agent deleted a customer's production volume and that it recovered the database. PocketOS founder Jer Crane said it took nine seconds.

Watch on YouTube

What to check.

Keep production privileges separate from development and staging. Ask a reviewer to confirm the precise target and intended change before a destructive production action.

Test recovery with an isolated copy and verify how long recovery takes. Railway says it added a 48-hour recovery window for API deletes after the incident.

Ackuity checks each action before it runs and gives one of five answers: Allow, Constrain, Human in the loop, Block or Terminate. A production delete outside the agent's task is the kind of action that goes to a person or is stopped. The check takes 40 to 100 ms.

Read the explanation.

0:00 Can an AI agent delete your production database? Yes. This April, one did. A coding agent at a startup called PocketOS was fixing something small. It made one call, and the production database was gone. Its founder says it took nine seconds. The fix isn't banning agents. It's checking each destructive action, in context, before it runs.

0:24 Here's the founder's account. The agent hit a credential mismatch in a staging environment. To fix it, it decided to delete a storage volume. It went looking for a key, and found one in an unrelated file. That key was made for managing custom domains. But it could do anything. Including delete. One call went to Railway, the hosting provider. The production volume was gone. The backups appeared gone too. Afterwards, the agent wrote: "You never asked me to delete anything. I decided to do it on my own." Railway says it recovered the database. And it changed its API, so deletes now wait forty-eight hours.

1:04 Most people assume the guardrail is the prompt. Tell the agent: never run destructive commands. This agent had a rule like that. By its own account, it broke it. Next idea: block the word DELETE. Then nothing ever gets cleaned up. And a command filter sees one DELETE. It can't see who asked, or why.

1:24 So take one DELETE, and change what surrounds it. A read-only support assistant tries it. Blocked. Wrong agent, wrong privilege. A database agent, on an approved ticket, deleting one row, like it has thirty-seven times before. Allowed. The same agent, deleting five thousand rows. Nothing in its history vouches for that. Sent to a human. Same command. Three answers. The difference is context.

1:52 Now ask those questions about the call in this story. Who asked for a delete? Nobody. What was the task? A staging fix. What did the call touch? Production. Where did the key come from? An unrelated file. Could it be undone? Through that API, at the time, no. A check before the action asks those questions every time. Railway's own lesson points the same way: make the destructive thing slow, and the recoverable thing fast.

2:22 At Ackuity, we build that check for AI agent security. Every agent action, judged in context, before it runs. No language model judging the call. A verdict in forty to one hundred milliseconds. For more answers like this, follow Ackuity.

Answers before you evaluate.

Can an AI coding agent delete a production database?

Yes. If the agent has credentials that permit destructive production actions, a backend can honor the request. Railway confirmed that a customer’s production volume was deleted and later recovered.

What should happen before an AI agent runs a destructive action in production?

The action should be checked before it runs, with the agent's identity, its task and the target in view. A delete that serves an approved task on a test system can go ahead. The same delete against production, outside the task, should go to a person or be blocked.

How can teams prevent unintended database deletion by AI agents?

Separate environment credentials, grant only necessary permissions, require human approval for destructive production actions and test recovery independently.

See what your agents actually do.

Map your agent exposure and leave with evidence-backed findings and written priorities.