DELETE /api/v2/users/{user_id}, a user who stays in another organization keepsDELETE /api/v2/users/{user_id} apply to every user in the list. If any user failscurl --location --globoff --request DELETE 'https:///api/v2/users/batch' \
--header 'X-Authorization-Consistency-Token;' \
--header 'Organization-Id;' \
--header 'Ocp-Apim-Subscription-Key: ' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data '{
"user_ids": [
42,
57
]
}'{
"success": true,
"message": "Users deleted successfully.",
"data": {
"users": [
{
"id": 7,
"email": "[email protected]",
"is_staff": false,
"is_superuser": true,
"is_active": true,
"date_joined": "2026-03-14T09:30:00Z",
"first_name": "Alex",
"last_name": "Kim",
"organization": {
"id": 12,
"created_by": "[email protected]",
"modified_by": "[email protected]",
"created_on": "2025-01-15T10:00:00Z",
"modified_on": "2026-06-01T08:30:00Z",
"org_name": "Contoso",
"domain": "contoso.com",
"description": "Contoso's support workspace.",
"org_logo_url": "",
"org_icon_url": "",
"org_logo_url_dark": "",
"org_icon_url_dark": "",
"is_deleted": false,
"parent": null
}
}
]
}
}