Skip to main content
DELETE
This action is irreversible. All data associated with the account is permanently deleted and cannot be recovered.

Authentication

All requests to this endpoint must include a valid JWT in the Authorization header.

What gets deleted

Deleting an account removes the following data for the authenticated user:
  • All rental invoices from the RentalInvoices DynamoDB table.
  • All retail invoices from the RetailInvoices DynamoDB table, including records in all category detail tables (FoodDeliveryInvoices, ClothingInvoices, TechnologyInvoices, SubscriptionInvoices, GroceryInvoices, MiscUtilityInvoices, MiscInvoices).
  • Gmail OAuth credentials stored in Secrets Manager.
  • The user’s folder in S3 (including all uploaded invoice files).
  • The user record itself from the Users DynamoDB table.

Response

string
A human-readable confirmation message. Example: "All data for user <user_id> deleted successfully!"
number
HTTP status code. 200 on success.
null
Always null for this endpoint.

Error responses

Error responses follow this structure: