Skip to main content
DELETE
/
users
/
{id}
curl -X DELETE https://api.arca.example.com/users/123e4567-e89b-12d3-a456-426614174000 \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"
{
  "message": "Usuário com ID 123e4567-e89b-12d3-a456-426614174000 removido com sucesso."
}
Delete a user from the system.

Authentication

Requires a valid JWT token in the Authorization header:
Authorization: Bearer {token}

Authorization

You can only delete users with a role level lower than your own, except:
  • Admins (roleId 1) can delete other Admins
  • You cannot delete yourself

Path Parameters

id
string
required
The user’s unique identifier (UUID).

Response

message
string
Confirmation message indicating successful deletion.
curl -X DELETE https://api.arca.example.com/users/123e4567-e89b-12d3-a456-426614174000 \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"
{
  "message": "Usuário com ID 123e4567-e89b-12d3-a456-426614174000 removido com sucesso."
}

Build docs developers (and LLMs) love