curl --request DELETE \
--url https://staging.api.us.aptlydone.com/auth/v1/user/bulk-delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"userIds": [
"b1ebc0cf-0170-47ca-8fd3-3859fbd6bfa2"
]
}'
{
"statusCode": 200,
"timestamp": "2025-06-25T06:16:48.664Z",
"message": "Success",
"data": {
"deletedCount": 123
}
}
curl --request DELETE \
--url https://staging.api.us.aptlydone.com/auth/v1/user/bulk-delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"userIds": [
"b1ebc0cf-0170-47ca-8fd3-3859fbd6bfa2"
]
}'
{
"statusCode": 200,
"timestamp": "2025-06-25T06:16:48.664Z",
"message": "Success",
"data": {
"deletedCount": 123
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Users deleted successfully
The response is of type object
.