Delete contact lists
DELETE/api/partner-gateway/contacts/list
Deletes one or more contact lists. This cannot be undone.
ids: comma-separated contact list IDs, at most 200 per call. To delete more lists, split them over several calls.- Lists are marked as deleted, not removed:
GET /contacts/list/{id}andGET /contacts/list/{listId}/contactsanswer404for them, andGET /contacts/listreturns them only withincludeDeleted=true, withisDeletedtrue. - Memberships are kept: the
listIdsof a contact can still contain the ID of a deleted list, andGET /contactswithlistIdsset to that ID still returns its former members. To leave no membership behind, remove the contacts from the list withDELETE /contacts/list/contactsbefore you delete it. - Contacts are not deleted: they stay in your account and in their other lists.
Check your campaigns first. If a deleted list is assigned to a draft or scheduled campaign, remove it from the
contactListIdsof the campaign before confirming, otherwise the campaign may fail validation.
Request
Responses
- 200
- 400
- 401
- 500
Contact lists deleted.
ids is missing, has more than 200 IDs or contains a value that is not a positive integer.
The API key is missing, invalid, or lacks the CONTACTS operation.
Unexpected server error.