Clean up and delete all deployed AWS resources after the workshop to avoid unwanted charges and verify solid project cost control.
AWS does not allow S3 buckets to be deleted if they contain objects. We must empty them first:
In the S3 Console, complete the following for all three buckets:
docuflow-dev-raw-<AWS_ACCOUNT_ID>-ap-southeast-1docuflow-dev-processed-<AWS_ACCOUNT_ID>-ap-southeast-1docuflow-dev-cloudtrail-logs-<RANDOM_STRING>For each bucket, select the checkbox next to its name -> Click Empty -> Type permanently delete to confirm.

Once empty, select the bucket -> Click Delete -> Type the name of the bucket to delete it permanently.

Go to DynamoDB -> select Tables from the left sidebar.

Select the main project table: docuflow-dev-documents-table.

Click the Delete button in the top menu -> Type confirm in the confirmation dialog and click Delete.

Go to Lambda, select all the newly created functions.

In Actions, click the dropdown to select Delete.

After clicking Delete, a Delete functions screen will appear, type confirm to delete the newly created functions.

Go to the API Gateway Console.

Select the project API: docuflow-dev-api.

Click the Delete button -> Confirm the action.

docuflow-dev-workflow-failed-alarmdocuflow-dev-sqs-dlq-not-empty-alarmdocuflow-dev-lambda-ai-proxy-error-alarmdocuflow-dev-low-confidence-spike-alarm
/aws/lambda/docuflow-dev-api-generate-upload-url-lambda/aws/lambda/docuflow-dev-ingestion-job-starter-lambda/aws/lambda/docuflow-dev-workflow-validate-lambda/aws/lambda/docuflow-dev-ai-textract-lambda/aws/lambda/docuflow-dev-ai-proxy-lambda/aws/lambda/docuflow-dev-ai-confidence-status-lambda
docuflow-dev-notification-system-alerts-topic -> Click Delete -> Type delete me to confirm.
docuflow-dev-audit-trail.
DocuFlow-Monthly-Actual-CostDocuFlow-Credit-SafetyDocuFlow-FreeTier-Watch
docuflow-dev-external-ai-api-key.
docuflow-dev-security-upload-url-roledocuflow-dev-security-job-starter-roledocuflow-dev-workflow-stepfunctions-roledocuflow-dev-ai-textract-lambda-roledocuflow-dev-security-ai-proxy-roledocuflow-dev-data-lambda-roledocuflow-dev-notification-lambda-roledocuflow-dev-workflow-validate-lambda-roledocuflow-dev-ai-confidence-status-lambda-role
docuflow-dev-ingestion-s3-raw-access-policy, docuflow-dev-ai-secret-read-policy, etc.).docuflow-dev-main-key.Pending deletion and maintenance fees will freeze.
Go to the Cognito Console.

Select the User pool: User pool - ....

Click Delete on the top menu -> Check the prerequisite actions and type the pool name to confirm deletion.
