You should delete the frontend interface first.

To avoid being charged by AWS, you must remove all created Lambdas, API Gateways, DynamoDB tables, etc.
Method 1: Delete via CLI (Recommended)
Open Terminal (while in the backend directory) and run the command:
sam delete
Confirm with y for all questions. CloudFormation will automatically find and remove everything.
Method 2: Delete via Web Console (Fallback for errors)
Sometimes deleting via CLI fails (because AWS Secrets Manager locks the Secret with a 30-day protection window). If you encounter a DELETE_FAILED error for the HmacSecretV2 resource, do the following:

qr-attendance-backend-dev stack, and select Delete (or Retry delete if it previously failed).


The system is now completely cleaned up!