Delete Specific User
Delete a specific team user by their unique identifier.
Endpoint
DELETE /user/delete
Authentication
Header | Value |
---|---|
Authorization | Bearer <jwt_token> |
Content-Type | application/json |
Request Body
Field | Type | Required | Description |
---|---|---|---|
id | string | ✅ | The unique identifier of the user to delete |
Example Request
curl -X DELETE \
'http://localhost:9000/user/delete' \
-H 'Authorization: Bearer <jwt_token>' \
-H 'Content-Type: application/json' \
-d '{
"id": "67f8e842675a6e160d48a59c"
}'
Response
Success Response (200 OK)
{
"message": "Team user deleted successfully"
}
Response Fields
Field | Type | Description |
---|---|---|
message | string | Confirmation message indicating successful user deletion |
Notes
- This operation permanently deletes the team user
- The deletion is irreversible - deleted users cannot be recovered
- Only admin users can delete team users
- The user's permissions and access rights are also removed
- Ensure the user is not currently active before deletion