Delete the authenticated user account
curl --request DELETE \
--url https://api.example.com/auth/delete \
--header 'Authorization: <authorization>'{
"message": "<string>",
"user": {
"user.id": 123,
"user.name": "<string>",
"user.email": "<string>",
"user.role": "<string>"
}
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/GioTaipe/E-commerce/llms.txt
Use this file to discover all available pages before exploring further.
Authorization: Bearer <jwt_token>
curl -X DELETE https://api.example.com/auth/delete \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
{
"message": "Usuario eliminado exitosamente",
"user": {
"id": 1,
"name": "John Doe",
"email": "john.doe@example.com",
"role": "customer"
}
}
{
"error": "Unauthorized"
}
{
"error": "Usuario no encontrado"
}
curl --request DELETE \
--url https://api.example.com/auth/delete \
--header 'Authorization: <authorization>'{
"message": "<string>",
"user": {
"user.id": 123,
"user.name": "<string>",
"user.email": "<string>",
"user.role": "<string>"
}
}