Authentication
Delete User Account
Delete the authenticated user account
DELETE
Delete User Account
Overview
Permanently deletes the authenticated user’s account. This action cannot be undone.Authentication
Required. This endpoint requires a valid JWT token in the Authorization header.Request Headers
Bearer token for authentication
Request Example
cURL
Response
Success message confirming account deletion
Response Example
Error Responses
401 Unauthorized
Returned when no valid JWT token is provided.404 Not Found
Returned when the user account doesn’t exist.Notes
- The user must be authenticated to delete their own account
- After deletion, the JWT token becomes invalid
- Related cart items are cascade-deleted
- Order history is preserved with user reference
Delete User Account