Domain

remove()

domain.remove() → Promise<{ ok: true }>

Detaches the domain. Its zone leaves us; the registration stays the customer's.

the zone goesthe domain stays theirsmove the registrar first
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

await domain.remove();
domain.remove()
Point the registrar elsewhere first

While it still points here and the zone is gone, the domain resolves to nothing — the site, the mail and everything else stop at once.

What goes

  • The zone and its records.
  • The mail hosts — and mailboxes on them stop receiving.
  • Any hostname served through it.

A zone that was here before is kept

A domain whose zone already existed when it was attached keeps it on detach. Those records were not ours to create, and they are not ours to destroy.

Reattaching starts over

A new empty zone, a new migration to read, and a new import. The DKIM key is the exception — mail keeps its key so messages already sent stay verifiable.