# remove()

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

`api.mail.remove(id) → Promise<{ ok: true }>`

Deletes a mailbox, its aliases and its routing. The address stops receiving at once.

Status: DELETE · aliases go with it · no undo

```javascript
await api.mail.remove("hello@example.com");
```

## What goes {#goes}

- The mailbox and its messages.
- Its aliases — they were addresses landing here, and there is no here any more.
- Its routing: the address stops receiving.
- Its forwarding.

> **Mail sent to it afterwards is refused at the door**
>
> Refused rather than accepted and bounced later — accepting a message for an address that is gone and bouncing it afterwards is what wrecks a sending reputation for everyone on the same infrastructure.

## The host stays enabled {#host}

The records on the domain are untouched, so another mailbox can be created on it immediately. To remove the mail configuration itself, use [mail.disable()](/sdk/ref/domain/mail/disable).

## The space comes back {#space}

What its messages and attachments held is released into the account's object storage.

## It frees a place in the plan {#plan}

`usage().mailboxes` drops, and another can be created.

- [mailbox.remove()](/sdk/ref/mailbox/remove): The same from the object.
- [mail.disable()](/sdk/ref/domain/mail/disable): Removing mail from the host.

```python
api.mail.remove("hello@example.com")
```
