MillionSend Docs

Delete contacts in bulk

POST
/contacts/batch/remove

MillionSend extension (Resend deletes contacts one at a time): deletes up to 1000 contacts by id or by email address in one request and lists the rows actually deleted; unknown ids or addresses are skipped. Emails stay in the log; erase: true also scrubs each address from email history, event payloads and API logs, like DELETE /contacts/{id}?erase=true.

Request Body

application/json
  1. body
ids?array<>

Contact ids to delete, up to 1000

Items1 <= items <= 1000
emails?array<>

Contact email addresses to delete, up to 1000; matched case-insensitively

Items1 <= items <= 1000
erase?boolean

Also erase each address from email history, event payloads and API logs (GDPR/LGPD); by default the send log is kept

Response Body

The contacts that were deleted

application/json
  1. response
data*array<>
Example Request
curl -X POST 'https://api.millionsend.com/contacts/batch/remove' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "data": [    {      "object": "contact",      "contact": "ad596931-5d7c-4d2b-907e-5b64c9432eb4",      "deleted": true    }  ]}