Contacts

remove()

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.

DELETEthe photo goes toofalls back
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

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

What happens to their messages

After removalShown
Their domain has a public logoThat logo
It does notInitials

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

The photo's bytes come back

Released from the account's object storage.

To keep the name and drop the photo

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

Removing the contact removes both.

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.