How to Restore a Deleted VPS and Delete Servers Safely
If you deleted a server on 0x.cloud by mistake, you can bring it back within 24 hours of deletion. This guide covers how to restore a deleted VPS, what happens to your money and data when you delete one, and a checklist for deleting servers without losing anything. In short: charges stop right away, after 24 hours the server is gone for good, and then the unused amount returns to your balance.
What Happens When You Delete a Server
| Item | What happens |
|---|---|
| Charges | stop immediately |
| Unused prepaid amount | returned to your account balance when the server is erased |
| Server and data | restorable for 24 hours, then permanently removed |
| Hourly billing | no hours are charged after deletion |
Deleting is what stops the charges: spin one up with hourly billing for a test, a build or an AI agent task, delete it, and pay only for the hours used. A full day on s1-2 costs about $1.31 ($7.99 / 730 × 5 × 24). See how hourly billing works and the plans on hourly VPS.
How to Restore a Deleted VPS Within 24 Hours
- Open your dashboard and find the deleted server in the server list.
- Start the restore and confirm. Restoring is free.
- Wait until the server is running again.
- Open the web console and check your data and services:
systemctl --failed.
If you cannot find the server in the dashboard or are unsure, contact support right away. Do not wait until the end of the day, because the 24-hour window starts at the moment of deletion.
After 24 hours the server and its disk are permanently removed. Your data can only come back from your own off-server copies, so set up a proper VPS backup for anything important.
How to Delete a VPS Without Losing Anything
- Copy the data you need: database dumps (pg_dump), uploads,
.envfiles, configs.# on the server: dump the database and archive the project sudo -u postgres pg_dump -Fc mydb > /root/mydb.dump tar -czf /root/project.tar.gz /root/app /root/mydb.dump # copy the archive off the server, for example to a host you control scp /root/project.tar.gz user@backup.example.com: - Repoint DNS if a domain points at this server, or visitors will hit an error.
- Turn off integrations: Telegram and n8n webhooks, CI jobs, monitoring.
- Revoke the server's access elsewhere: GitHub deploy keys, database allowlists for this IP.
- Delete the server in the dashboard and confirm.
When an AI Agent Deletes Servers
An agent can delete servers through MCP or the REST API only if its API key has the delete permission. That is handy when an agent spins up a server for a task and cleans up after itself so you do not pay for idle time.
List my 0x.cloud servers with creation date and plan. Delete the test-build server only after I confirm its name in my reply. Do not touch any other server.
If an agent deletes the wrong server, restore it within 24 hours using the steps above. To prevent it, check the key's permissions: a default key gets every server permission (servers.*), which means it can delete servers and run commands as root. Remove what you don't need in the dashboard and keep the delete permission only on keys that truly need it.
Deleted, Out of Balance, or Powered Off
| Situation | The server | Your money |
|---|---|---|
| You deleted it | 24 hours to restore, then removed | charges stop, unused amount back to balance once it is removed |
| Your balance hit zero | data kept for 7 days | top up to keep the server running |
| You powered it off | server and disk stay in your account | only deletion is guaranteed to stop charges |
For the zero-balance case, see what happens when your balance runs out.
Where the Money Goes After Deletion
The unused amount is credited to your account balance in USD once the server is erased. Spend it on new servers and add-ons.
Example: you paid $7.99 for a month of s1-2 and delete the server after 10 days. Charges stop the moment you delete it, and the unused part of the payment returns to your balance.
Common Problems and Fixes
The deleted server is not in my dashboard. Refresh and check the list filters. If it is still missing, contact support immediately with the server's name and the deletion time.
More than 24 hours have passed. The server cannot be restored. Create a new one and restore your data from your own copies.
The refund is not on my balance. Refresh the balance page; if the amount is missing, contact support.
FAQ
How long do I have to restore a deleted server? 24 hours from the moment of deletion. After that, the server and its data are permanently removed.
Do I get money back when I delete a server? Yes. Charges stop immediately, and the unused amount goes back to your account balance when the server is erased for good, after the 24-hour restore window. You can spend it on other servers.
Can I restore a server deleted a week ago? No. The restore window is 24 hours. After that, data can only come back from your own off-server copies.
What happens if my balance runs out? That is not a deletion. Server data is kept for 7 days, so you have time to top up.
Can an AI agent delete my server? Only if its API key has the delete permission. You set each key's permissions (read, create, delete) and monthly spend cap, so a key without delete rights cannot remove a server.