Skip to main content
DELETE /api/usuario/:id Permanently removes the user record with the given id from the database. This is a hard delete — the row is removed with DELETE FROM usuario WHERE id = :id. There is no soft-delete or deactivation performed by this endpoint.

Path parameters

id
number
required
Primary key of the user to delete.

Response

success
boolean
required
true when the delete statement executes without error.
message
string
required
Confirmation string. Always "Eliminado" on success.
This operation is irreversible. The record is permanently removed from the database with no soft-delete fallback.
The handler does not check whether the id exists before executing the delete. If the id does not match any record, the statement runs without error and the response is still { success: true, message: "Eliminado" }.

Examples

curl --request DELETE \
  --url https://your-domain.com/api/usuario/12 \
  --cookie 'auth_token=<your-jwt>'

Success response

200
{
  "success": true,
  "message": "Eliminado"
}

Build docs developers (and LLMs) love