# remove()

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

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

Deletes a contact and its photo. Messages from that address fall back to whatever the chain finds next.

Status: DELETE · the photo goes too · falls back

```javascript
await api.mail.contacts.remove("fedy@example.net");
```

## What happens to their messages {#fallback}

| After removal | Shown |
| --- | --- |
| Their domain has a public logo | That logo |
| It does not | Initials |

Messages already delivered keep what was resolved at the time; new ones resolve again.

## The photo's bytes come back {#space}

Released from the account's object storage.

## To keep the name and drop the photo {#keep-name}

```javascript
await api.mail.contacts.save({ address: "fedy@example.net", image: null });
```

Removing the contact removes both.

## Errors {#errors}

An address that is not a contact answers 404 — the mirror of `get()` returning `null`, because this one asks for something to be done rather than looked up.

- [save()](/sdk/ref/mail/contacts/save): Changing instead.
- [Contacts](/sdk/ref/mail/contacts): The whole address book.

```python
api.mail.contacts.remove("fedy@example.net")
```

```python
api.mail.contacts.save(address="fedy@example.net", image=None)
```
