DELETE /api/v2/account/deleteBulk
Removes all participants from an event in a single operation. Supports both hard deletion (permanently removing accounts from the system) and event detachment (removing participants from the event only, while keeping their accounts). Specific participants can be excluded from the operation.
Authentication
Authorization: Bearer <your_api_key>
Endpoint
DELETE /api/v2/account/deleteBulk
Hard Delete vs Event Detachment
|
Mode |
How to trigger |
What happens |
|---|---|---|
|
Hard delete |
Omit |
All matched participant accounts are permanently deleted from the system |
|
Event detachment |
Pass |
All matched participants are unregistered from the event. Their accounts remain in the system |
Query Parameters
|
Parameter |
Type |
Required |
Accepted Values / Format |
Description |
|---|---|---|---|---|
|
|
integer |
Yes |
Valid event ID |
The event whose participants will be removed |
|
|
boolean |
No |
|
When |
|
|
string |
No |
Comma-separated internal account IDs (e.g. |
Account IDs to skip. These participants will not be removed |
Response
Success (HTTP 200)
{
"code": 200,
"data": {
"id": "101,102,103",
"status": "Accounts removed from event"
},
"response_id": "1700000000.12345"
}
|
Field |
Type |
Description |
|---|---|---|
|
|
string |
Comma-separated list of successfully removed account IDs |
|
|
string |
|
|
|
array |
Present only when individual account removals failed |
Nothing removed
{
"code": 200,
"data": {
"id": "",
"status": "skipped"
}
}
Error Responses
|
HTTP Code |
Condition |
Error Message |
|---|---|---|
|
400 |
|
|
|
400 |
|
|
|
400 |
Event not found |
|
|
400 |
No participants found for this event |
|
|
403 |
Missing or invalid API key |
|
Example Request — detach all participants from event
curl -X DELETE "https://your-event-domain.com/api/v2/account/deleteBulk?event_id=7&from_event=true" \
-H "Authorization: Bearer your_api_key_here"
Example Request — detach all except specific accounts
curl -X DELETE "https://your-event-domain.com/api/v2/account/deleteBulk?event_id=7&from_event=true&except=101,202" \
-H "Authorization: Bearer your_api_key_here"