# remove()

Canonical URL: https://developers.iagenify.com/sdk/ref/domain/remove/
Language: en

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

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

Status: the zone goes · the domain stays theirs · move the registrar first

```javascript
await 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 {#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 {#adopted}

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 {#reattach}

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.

- [api.domains.remove()](/sdk/ref/domains/remove): The same, by name.
- [mail.disable()](/sdk/ref/domain/mail/disable): Removing just the mail.

```python
domain.remove()
```
