Welcome to our new docs! Please keep in mind we are still working on making everything is as accurate as possible. Join us on discord and ask us questions if you are unsure.
DezerX Spartan Logo
User

Delete User

Delete a specific user from the system (soft delete)

DELETE
/users/{id}
AuthorizationBearer <token>

Bearer token authentication

In: header

Path Parameters

idinteger

User ID

Response Body

curl -X DELETE "https://serverpro.dezerx.com/api/application/users/3"
{
  "success": true,
  "message": "User deleted successfully"
}
{
  "error": "Unauthorized",
  "message": "Bearer token required"
}
{
  "error": "Forbidden",
  "message": "Insufficient permissions for this action"
}
{
  "success": false,
  "message": "User not found"
}