Skip to main content
POST
Delete many subscribers

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
subscriber_group_id
string<uuid>
required

Subscriber group the subscribers belong to

Example:

"019f3895-b731-7429-ba75-c44ae105b6f4"

ids
string<uuid>[]

Subscriber IDs to delete. When provided, the filter fields are ignored.

Minimum array length: 1
select_all
enum<boolean>

Required when ids is omitted: confirms the delete targets every subscriber matching the filters.

Available options:
true
Example:

true

excluded_ids
string<uuid>[]

Subscriber IDs to keep when deleting a filtered "select all" set.

limit
integer

Maximum number of subscribers to delete from the filtered set (a "first N" selection).

Required range: x >= 1
Example:

100

status
enum<string>
default:all

With select_all, delete only subscribers with this status.

Available options:
all,
subscribed,
unsubscribed
Example:

"all"

With select_all: Only subscribers whose email starts with this text. A search reads the first 50 matches in email order, then applies status; sort_order is ignored. Further matches are not deleted.

Minimum string length: 1
Example:

"john@"

sort_order
enum<string>
default:desc

With select_all and limit, which end of the group the first N are taken from, by creation time. Ignored with search.

Available options:
asc,
desc
Example:

"desc"

Response

The delete ran. Check failed for subscribers that could not be deleted.

The delete ran. Check failed for subscribers that could not be deleted.

status
string
required

Always success

Example:

"success"

deleted
number
required

Number of subscribers deleted

Example:

42

failed
number
required

Number of subscribers whose delete failed

Example:

0