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.