Skip to main content
DELETE
/
api
/
Usuario
/
{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
Permanently removes a user account from the system. The caller must hold the usuario.eliminar permission.
This action is irreversible. Once deleted, the user account and all associated data cannot be recovered.

Authentication

Requires a valid Bearer token with the usuario.eliminar permission.
Authorization: Bearer <token>

Path parameters

id
string
required
The GUID of the user to delete.

Responses

StatusDescription
200 OKUser deleted successfully. Response body is empty.
400 Bad RequestASP.NET Identity returned errors during deletion.
403 ForbiddenThe caller’s token lacks the usuario.eliminar permission.
404 Not FoundNo user exists with the given id.

Examples

curl --request DELETE \
  --url https://your-api-host/api/Usuario/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
  --header 'Authorization: Bearer <token>'
HTTP/1.1 200 OK
A 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.

Build docs developers (and LLMs) love