POST
/subscribers/query/deleteDelete subscribers by query
Deletes subscribers selected by an SQL expression or subscriber identifiers. Provide the expression as plain text or use a JSON body to specify query, ids, and any applicable action, target_list_ids, or status filters.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
An optional SQL expression as plain text, or a JSON object containing subscriber selectors and modification options.
querystringoptional
An SQL expression used to select subscribers for deletion.
idsarray<integer>optional
The ids of the subscribers to be modified.
actionstringoptional
Whether to add, remove, or unsubscribe the users.
target_list_idsintegeroptional
The ids of the lists to be modified.
statusstringoptional
confirmed, unconfirmed, or unsubscribed status.
200Returns an object whose `data` field indicates whether the deletion operation completed.
databooleanoptional
Error handling
For a JSON body, action must be add, remove, or unsubscribe when supplied, and status must be confirmed, unconfirmed, or unsubscribed when supplied. Use query for an SQL expression or ids to identify the subscribers to modify.