Deleting a server in dPanel destroys a cloud VM at your provider, or only disconnects a server you connected yourself. Your provider bills a cloud machine for as long as it exists, so remove one as soon as you are done with it.
What you need first
Deletion is refused while applications or load balancers still use the server. Delete those first:
Delete it
- Open the server and go to Settings.
- In Danger zone, press Delete server. The same command is in the header, under More actions (⋯).
- Read What happens.
- Type the server's name to confirm, then press Delete server.

What happens next
The server shows Deleting while the provider tears the machine down, then reads Deleted. Any of its jobs that have not finished stop, with the message The server was deleted while this job was running, so the job was stopped.
Check two places:
- The Servers list.
- Your provider's own console. dPanel reports what the provider told it, so a delete that half fails at the provider shows up there.
Remove a server dPanel can no longer reach
Sometimes a server is gone before you delete it in dPanel: you deleted the VM at your provider yourself, the machine died, or it was switched off for good. dPanel then cannot clean up its applications and load balancers on the machine, so a normal delete is refused.
In that case Delete server offers Remove from dPanel instead. It shows when the agent last reported and what will be removed:
- the server, with its deployments, builds and load balancers in dPanel;
- its unfinished jobs, which are stopped;
- the DNS records dPanel created for its load balancers.
Nothing on the machine is changed or deleted, and removing a server here never deletes a VM at your provider. Tick I understand that this only removes the records from dPanel and press Remove from dPanel. For a cloud server whose provider dPanel cannot check, it also asks you to tick that you already deleted the VM at your provider. Check your provider's console first, so you do not keep paying for a VM you can no longer see in dPanel.
From the terminal:
dnocs server delete --id <server id> --forget
Add --vm-deleted when dPanel asks you to confirm that you deleted the cloud VM at the provider.
If the server comes back
dPanel cannot know whether a machine is gone for good or only down for a while. If a removed server starts again, its agent is refused and goes quiet; nothing on the machine changes, and its applications keep running. A notice on Servers, such as 1 removed server came back, lists it with the commands below. Then either:
- run
sudo dnocs machine registeron it to manage it in dPanel again, or - stop its agent with
sudo systemctl disable --now dpanel-agent.
The notice stays for 7 days after the agent's last call. Dismiss hides it in your browser until that agent calls again.
Frequently asked questions
Why is Delete server refused?
Applications or load balancers still use the server, or it is a node of a Kubernetes cluster. Delete those first, or uninstall and delete the cluster. See Server groups and clusters.
Delete server says the server cannot be reached. What now?
The machine is off or gone. If it is only down, start it again and wait for the agent to report, then delete it normally. If it is gone for good, use Remove from dPanel. See Remove a server dPanel can no longer reach.
Can I delete a server that still reads Waiting for agent?
Yes. If you never ran its install command, or the command expired, delete it like any other server. Nothing was installed on a machine, so there is nothing to clean up there.
Can I get a deleted server back?
No. A cloud server's disk is destroyed at the provider. Back up anything you need before you delete it.
Does deleting a server I connected myself wipe it?
No. dPanel forgets it; the machine, your applications and their data stay. Over SSH, dPanel also removes its agent. With the dPanel agent, the agent's access is revoked, and you stop it yourself with sudo systemctl disable --now dpanel-agent.
A failed launch left a VM at my provider. How do I find it?
dnocs cloud-project orphans --id <cloud account ID> lists VMs that dPanel created in that cloud account but that no longer belong to a server, on AWS, Google Cloud, DigitalOcean, IDCloudHost and Tencent Cloud. Add --delete to delete them at the provider.