---
title: "Delete a contact"
method: DELETE
path: "/contacts/{id}"
tags: ["Contacts"]
---

# Delete a contact

`DELETE /contacts/{id}`

## Request

- Base URL: `https://api.mepmail.dev`
- URL: `https://api.mepmail.dev/contacts/{id}`
- Auth: HTTP bearer

Deletes the contact and its segment memberships. Its emails stay in the log; pass `erase=true` to also scrub the address from email history, event payloads and API logs.

## Path parameters

- `id` string, required

## Query parameters

- `erase` 'true' | 'false': MepMail extension. `true` also erases the address from email history, event payloads and API logs (a GDPR/LGPD erasure); by default the send log is kept and ages out with the team's retention window

## Response `200`

Contact deleted

- RemoveContactResponse
  - `object` 'contact', required
  - `contact` string, uuid, required
  - `deleted` true, required

## Other responses

- `401`: Missing, malformed or invalid API key
- `404`: Not found
- `429`: Rate limit exceeded: 600 requests per minute per API key and 3,000 per team; wait for Retry-After

---

[API](https://skmtc.dev/mepmail/apis/mepmail-api.md) · [All operations](https://skmtc.dev/mepmail/apis/mepmail-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mepmail/apis/mepmail-api/revisions/262a89f73730?raw)
