Skip to main content

Remove a domain

Takes one domain out of your account, with everything in it, and leaves the account and your other domains as they are. Afterwards nothing on the server is tied to the name, so it can be added again, by you or by another account.

Remove is beside each domain on Domains, and Remove Domain is on the domain's DNS zone service. Neither is there when adding and removing domains is turned off on the server, or when your domain limit is 0; your provider removes domains then. A removal that had already started goes on, and you can still follow it.

An inactive or handed-over copy left by a move is removed the same way, and touches nothing of the copy that serves the domain.

What goes and what stays​

The page opens with a dry run: under What goes, how many hostnames, domain accounts and mailboxes, services, web applications, web mounts and identity applications the removal takes.

What goes is everything on the domain's hostnames:

  • its domain accounts: mailboxes with their mail, groups, forwarders, mailing lists and the rest, and its mail still waiting to be sent;
  • its services: the DNS zone, websites and aliases, mail, the mail server and the identity provider;
  • the mounts of its websites, and the applications registered on its identity provider;
  • the panel's record of the web applications installed on its websites.

What stays is the account's: your files, document roots included, your databases, app servers, containers, certificates, backups and your other domains, including one below this domain that you hold as a domain of its own.

Nothing undoes a removal

From the moment the removal starts, the domain's mailboxes are deleted with their mail and its websites stop. A website's files stay in your home directory; mail is gone except in your backups.

When a removal is refused​

Under Cannot be removed yet, the page lists what outside the domain still depends on something inside it, and offers no way to go on:

  • a website alias elsewhere that points to a website in this domain;
  • a Mail service elsewhere whose mail server is this domain's;
  • a website or mail server elsewhere that signs in through this domain's identity provider.

"Elsewhere" includes your other domains. Move or remove those first, then come back. A removal is also refused while the domain is already being removed.

Warnings​

Under Warnings, the page lists what you may want to deal with, before or after. None of them stops the removal.

  • The last domain. The account stays, with no domain at all: its mailboxes, websites and identity services all go with this one.
  • The parent zone still delegates the domain here. Once the zone is removed, the domain doesn't resolve anywhere until you point it at other name servers at the registrar.
  • The parent zone still has a DS record. Have it removed at the registrar: served elsewhere with other keys, the domain fails DNSSEC validation while it stays.
  • A domain of yours below this one stays, e.g. shop.example.com, but without the delegation to it, which was in this zone.
  • The zone is at your own DNS provider (Cloudflare or deSEC). The panel removes its own copy only; the zone there stays until you delete it.
Change the name servers at the registrar

While the registrar still points the domain at this server, any account on the server can add it, by the name server proof. Point the domain elsewhere, or let it lapse, right after you remove it.

Remove it​

  1. Select Remove. The panel first asks you to confirm your identity, with your password or a passkey.
  2. Read the dry run.
  3. Type the domain's name in Type the domain name to confirm, and select Remove domain.

The removal runs in the background, and its page shows each step as it goes. While it runs, the domain is marked Being removed, and nothing in it can be added or changed. Domains lists your removals under Domain removals, finished ones included.

If a removal stops

A step that fails stops the removal, and its page says so. Contact your provider: they can see why, and go on with it.

From a script​

With an API key that has dns:readwrite:

Method and pathWhat
DELETE /api/v1/dns-zone-services/{id}?dryRun=trueThe dry run: allowed, refusals, warnings and counts. Removes nothing.
DELETE /api/v1/dns-zone-services/{id}Start the removal. Answers 202 with the removal, or 409 removal-refused with the refusals in meta.refusals.
GET /api/v1/domain-removals/{id}Where the removal has got to: state, currentStep, finishedAt.

Both DELETEs, the dry run included, answer 403 domain-self-service-disabled when you can't remove domains: removing is turned off on the server, or your domain limit is 0. detail says which.

{id} takes the domain's name as well, e.g. example.com. An API key skips the identity confirmation, so give dns:readwrite only to a key that needs it.

The MCP server has no tool that removes a domain, so neither your AI tools nor the AI Assistant can: asked to delete a DNS zone, the tool refuses and gives the address of the domain's Remove page, or says that your provider removes it when you can't.