Delete contacts in bulk
POST
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.
application/json- body
ids?array<>Contact ids to delete, up to 1000
Items
1 <= items <= 1000emails?array<>Contact email addresses to delete, up to 1000; matched case-insensitively
Items
1 <= items <= 1000erase?booleanAlso erase each address from email history, event payloads and API logs (GDPR/LGPD); by default the send log is kept
The contacts that were deleted
application/json- response
data*array<>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 } ]}