In April 2026 the founder of a software company described how a coding agent, working on a routine task in the staging environment, deleted a storage volume at the hosting provider. The company lost access to its production database and to the backups listed for that volume. In his words, quoted by Tom’s Hardware: “It took 9 seconds.”
So the answer is yes: an agent can delete whatever the credentials within its reach allow. The hosting provider wrote that the agent had found an API token with account-wide access on the user’s machine. The provider later recovered the data, and it now holds back volume deletions made through its API for 48 hours.
An instruction is not a limit
The agent in that case had rules to follow. It wrote afterwards that it had guessed the deletion would only affect staging and had not checked. In July 2025 another agent wiped the records of more than 1,200 executives from a live database during a declared code freeze.
A sentence in a prompt or an instructions file lowers the odds without making the action impossible. The permission settings of the agent tool are stronger, and I describe the ones I use in What should a coding agent be allowed to do on its own? They still live on the same machine as the agent. A limit holds when it is enforced somewhere the agent can’t edit: by the server, the database or the storage provider.
Keep production credentials out of reach
An agent on your machine can use what your machine can use: the .env file in the project, a command-line tool you logged in to, a connected service with a write token. If the database address in your .env is the production one, the agent is working on production.
On every platform the rule is the same: the development machine holds development credentials. Kontura’s production secrets are not in its repository. They are stored in the deployment tool, which writes them into a directory on the server that only the administrator account can read.
When I want the agent to look at a server, I ask for a read-only check. I once asked for one on the server that runs dimetime, my budgeting app, and that time the server enforced it. The report listed what the agent had not been able to check: the administrator’s scheduled jobs, the running image and the app’s logs. Each of those needed administrator rights, and the server asked for a password the agent did not have.
One copy that no everyday key can delete
Somebody always holds a key that can delete things, so Kontura keeps its backups in a place where deleting is refused.
The server uploads an encrypted backup to an off-site storage bucket every night. The key it uses may upload, read and list. It has no permission to delete. I tried a delete with that key on a fresh backup, and the storage answered AccessDenied.
The bucket also has a setting called Object Lock, in compliance mode, for 30 days. I tested that the same evening with a test file and my own owner key:
An error occurred (AccessDenied) when calling the DeleteObject operation:
Access Denied because object protected by object lock.

In the April case one call took away the database and every backup the customer could see. With a locked copy somewhere else, the worst case is a restore. Kontura’s target is to lose at most a day of work. The real loss runs from the newest clean backup taken before the damage, which has to restore, to the moment writes stopped.
The lock has limits. It protects stored backups, and anyone with administrator rights on the server can still delete the live database. A refused delete also leaves one question open, so ask your provider: can the key that uploads set the lock on future backups, or change the bucket’s default? Object Lock is a feature of S3-style storage. If a platform manages your database, read what its documentation says about who can delete backups.
Check your own app
Open the .env file in your project and look at the database address. If it points at the database your users are in, your agent works on production. Then find out where your backups are and whether the login that can delete the database can also delete them.
This prompt has the agent list what this project gives it access to:
Read this project's code and configuration only. Do not change anything,
run scripts, send requests to live services or use production credentials.
Do not open private keys, credential stores or other projects. Report file
names, line numbers and variable names. Never show the value of a key,
token, password or connection string, and do not print the contents of
environment files or MCP configuration, not in search output either.
List the credentials this project is set up to use: environment files (by
variable name), deployment configuration, connected MCP servers. For each:
1. does it belong to production, staging or a local setup,
2. could it delete or overwrite data,
3. what on the other side would stop that, if anything.
Then say where this project's backups are stored and which of these
credentials could delete them. Mark what you saw and what you inferred,
and list what I have to check myself.
This post is part of the checklist in Is my vibe-coded app production-ready?