Skip to main content

DELETE /api/users/[id]

Permanently deletes the authenticated user’s account. Also removes the user from Loops.so.
This action is irreversible. The client should show a confirmation modal before calling this endpoint.
Requires authentication. User can only delete their own account.

Response (200)

{
  "message": "Account deleted successfully"
}

Errors

StatusCodeReason
401UNAUTHORIZEDNot authenticated
403FORBIDDENNot your account