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
The unique identifier of the professional user to deleteExample: 1
Response
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 Code | Description |
|---|
| 200 | Professional deleted successfully |
| 401 | Authentication required |
| 403 | User does not have permission to delete this account |
| 404 | Professional user not found |
This operation is permanent and cannot be undone. All data associated with the professional user will be deleted.