# remove()

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

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

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

Status: DELETE · aliases go too · no undo

```javascript
await box.remove();
```

## What goes {#goes}

- The mailbox and its messages.
- Its aliases — addresses that landed here.
- Its routing, and its forwarding.

> **Mail sent afterwards is refused at the door**
>
> Not accepted and bounced later. Accepting for an address that no longer exists and bouncing afterwards is what damages a sending reputation — for everyone, not only for that account.

## The host stays enabled {#host}

The domain's records are untouched, so another mailbox can be created on it right away.

## The space comes back {#space}

Its messages and attachments are released into the account's object storage, and a place opens in the plan.

## Export first if it matters {#export}

There is no undo and no archive. [messages.list()](/sdk/ref/mailbox/messages/list) paged through is the way to take a copy before deleting.

- [api.mail.remove()](/sdk/ref/mail/remove): The same, by address.
- [messages.list()](/sdk/ref/mailbox/messages/list): Exporting first.

```python
box.remove()
```
