DELETE
/
v1
/
user
/
bulk-delete
Delete multiple users
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
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200 - application/json

Users deleted successfully

The response is of type object.