Skip to main content
DELETE
/
profissionais
/
{user_id}
curl -X DELETE https://api.vidaplus.com/profissionais/1 \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "message": "User deleted"
}
Permanently deletes a professional user account from the system.

Authentication

Requires a valid JWT token in the Authorization header.

Permissions

  • Superusers: Can delete any professional account
  • Regular users: Can only delete their own account
  • Returns 403 Forbidden if a non-superuser tries to delete another user’s account

Path Parameters

user_id
integer
required
The unique identifier of the professional user to deleteExample: 1

Response

message
string
Confirmation message indicating successful deletion
curl -X DELETE https://api.vidaplus.com/profissionais/1 \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "message": "User deleted"
}

Error Codes

Status CodeDescription
200Professional deleted successfully
401Authentication required
403User does not have permission to delete this account
404Professional user not found
This operation is permanent and cannot be undone. All data associated with the professional user will be deleted.

Build docs developers (and LLMs) love