Skip to main content

Delete Specific User

Delete a specific team user by their unique identifier.

Endpoint

DELETE /user/delete

Authentication

HeaderValue
AuthorizationBearer <jwt_token>
Content-Typeapplication/json

Request Body

FieldTypeRequiredDescription
idstringThe 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

FieldTypeDescription
messagestringConfirmation 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