Batch Delete Users
DELETE
/api/user/batch
User APIs
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request DELETE '/api/user/batch' \
--header 'Content-Type: application/json' \
--data-raw '{
"user_ids": [
7
]
}'
Response Response Example
{
"success": true,
"message": "Users deleted successfully.",
"data": [
{
"id": 4,
"email": "john@example.com",
"is_staff": false,
"is_superuser": false,
"is_active": true,
"date_joined": "2024-10-02T00:02:24.378434Z",
"first_name": "John",
"last_name": "Doe",
"organization": {
"id": 1,
"org_name": "Tech Solutions",
"domain": "techsolutions.com",
"is_deleted": false,
"created_by": "System",
"created_on": "2024-09-27T22:40:45.279198Z",
"modified_by": "",
"modified_on": "2024-09-27T22:40:45.279237Z"
}
},
{
"id": 2,
"email": "",
"is_staff": false,
"is_superuser": false,
"is_active": true,
"date_joined": "2024-09-27T22:41:10.250883Z",
"first_name": null,
"last_name": null,
"organization": {
"id": 1,
"org_name": "Tech Solutions",
"domain": "techsolutions.com",
"is_deleted": false,
"created_by": "System",
"created_on": "2024-09-27T22:40:45.279198Z",
"modified_by": "",
"modified_on": "2024-09-27T22:40:45.279237Z"
}
},
{
"id": 3,
"email": "admin@example.com",
"is_staff": true,
"is_superuser": true,
"is_active": true,
"date_joined": "2024-09-27T22:41:22.274470Z",
"first_name": "Admin",
"last_name": "User",
"organization": {
"id": 1,
"org_name": "Tech Solutions",
"domain": "techsolutions.com",
"is_deleted": false,
"created_by": "System",
"created_on": "2024-09-27T22:40:45.279198Z",
"modified_by": "",
"modified_on": "2024-09-27T22:40:45.279237Z"
}
}
]
}
Request
Body Params application/json