How to bulk remove participants except specific ones
Use this guide when you need to remove all participants from an event but want to preserve specific accounts — for example, keeping admin or test accounts while clearing everyone else.
Prerequisites
-
Your API key
-
The
event_idof the event -
The internal account IDs of the participants to keep (the
exceptlist)
Request — detach all except specific accounts
Bash
curl -X DELETE "https://your-event-domain.com/api/v2/account/deleteBulk?event_id=7&from_event=true&except=101,202,303" \
-H "Authorization: Bearer your_api_key_here"
Request — permanently delete all except specific accounts
Bash
curl -X DELETE "https://your-event-domain.com/api/v2/account/deleteBulk?event_id=7&except=101,202,303" \
-H "Authorization: Bearer your_api_key_here"
Response
JSON
{
"code": 200,
"data": {
"id": "104,105,106,107",
"status": "Accounts removed from event"
},
"response_id": "1700000000.12345"
}
The accounts listed in except are not included in the id list and are unaffected.
Notes
-
exceptaccepts a comma-separated list of internal account IDs only — not emails or External IDs -
Use
from_event=trueto detach only, or omit it to hard delete -
The
exceptlist is subtracted before processing — those accounts are skipped entirely