DELETE
/
api
/
admin
/
user
/
{userId}
Delete a user by ID
curl --request DELETE \
  --url https://pria.praxislxp.com/api/admin/user/{userId} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "User deleted successfully"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

userId
string
required

The unique identifier of the user to delete (MongoDB ObjectId)

Response

User successfully deleted

The response is of type object.