Skip to main content
DELETE
/
auth
/
delete-account
Delete Account
curl --request DELETE \
  --url http://localhost:3000/api/auth/delete-account
{
  "success": true,
  "message": "Account successfully deleted"
}

Overview

This endpoint permanently deletes the authenticated user’s account and all associated data from the platform. This action is irreversible and will:
  • Delete the user’s Firebase Authentication account
  • Remove all user data from Firestore (bookings, availability, gallery, etc.)
  • Clear the user’s session cookie
  • Permanently remove all associated records

Important Notes

This action cannot be undone. Once an account is deleted, all data is permanently removed and cannot be recovered.
  • The user must be authenticated to delete their account - The operation can take up to 5 minutes to complete - All user data including bookings, messages, and gallery photos will be deleted - The session cookie will be cleared automatically after successful deletion

Use Cases

  • User wants to permanently close their account
  • Privacy compliance (GDPR right to erasure)
  • Account cleanup after testing

Security

  • Requires valid authentication session
  • Only the authenticated user can delete their own account
  • Session cookie is cleared after successful deletion

Future Considerations

In future implementations, this endpoint may check for:
  • Active subscriptions that need to be cancelled first
  • Pending bookings that need to be resolved
  • Outstanding payments or refunds

Response

Account deleted successfully

success
boolean
required

Whether the operation was successful

message
string
required

Confirmation message

Example:

"Account successfully deleted"