sendsend.email

Delete an audience

DELETE/v1/audiences/{id}

Deletes the audience and its contacts. Refused while a broadcast to it is scheduled or sending, and for audiences that have already sent a broadcast, which are kept for your records.

Required scope: contacts:manage

Parameters

NameInDescription
idrequiredpathThe audience id.

Example

curl -X DELETE 'https://api.sendsend.email/v1/audiences/ID' \
  -H "Authorization: Bearer $SENDSEND_API_KEY"

Response 200

{
  "object": "audience",
  "id": "xxx_…",
  "deleted": true
}

Errors

StatusCodeWhen
404not_foundNo such resource in this project.
409validation_errorA broadcast is still using it, or it has sent broadcasts.
401unauthorizedThe API key is missing, invalid or revoked.
403forbiddenThe key does not have the scope this endpoint needs.

Every error has the same shape. See Errors.