Permanently delete a user account. Requires the usuario.eliminar permission.
curl --request DELETE \
--url https://your-api-host/api/Usuario/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
--header 'Authorization: Bearer <token>'
HTTP/1.1 200 OK
usuario.eliminar permission.
usuario.eliminar permission.
Authorization: Bearer <token>
| Status | Description |
|---|---|
200 OK | User deleted successfully. Response body is empty. |
400 Bad Request | ASP.NET Identity returned errors during deletion. |
403 Forbidden | The caller’s token lacks the usuario.eliminar permission. |
404 Not Found | No user exists with the given id. |
curl --request DELETE \
--url https://your-api-host/api/Usuario/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
--header 'Authorization: Bearer <token>'
HTTP/1.1 200 OK
403 Forbidden response means the token is valid but the caller’s profile does not include the usuario.eliminar permission. Contact an administrator to update the profile’s permissions.curl --request DELETE \
--url https://your-api-host/api/Usuario/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
--header 'Authorization: Bearer <token>'
HTTP/1.1 200 OK