Clean up

It will take a bit time to finish the cleanup

  1. Cleanup Route 53.

    • Open AWS Route 53 console.
    • Click Hosted zones on the left menu.
    • Choose your Hosted zone. Route 53 Hosted zones
    • Select all records except the NS and SOA records.
    • Click Delete records button. Select records to delete
    • Click Delete button to confirm. Delete records confirmation
    • After the records are deleted, click Delete zone button. Records deleted - Delete zone
    • Enter delete to confirm.
    • Click Delete button. Delete hosted zone confirmation
    • The hosted zone is deleted successfully. Hosted zone deleted
  2. Delete CloudFormation stacks.

    Before deleting the CloudFormation stacks, make sure to **empty all S3 buckets** related to this workshop first. CloudFormation cannot delete non-empty S3 buckets.
    
    • First, empty the S3 buckets related to this workshop. Empty S3 bucket

    • Execute the below command to delete the AWS SAM application.

      sam delete --stack-name fcaj-book-store
      sam delete --stack-name aws-sam-cli-managed-default
      

      Delete SAM application

    • If you have issues when deleting with command. Open AWS Cloudformation console. Then, delete all stacks related to this workshop.

  3. Cleanup SQS.

    • Open Amazon SQS console.
    • Click Queues on the left menu.
    • Choose checkout-queue.
    • Click Delete button. SQS Queues - select checkout-queue
    • Enter confirm.
    • Click Delete button. Delete queue confirmation
    • The queue is deleted successfully. Queue deleted successfully
  4. Cleanup SNS.

    • Open Amazon SNS console.
    • Click Topics on the left menu.
    • Choose order-notice.
    • Click Delete button. SNS Topics - select order-notice
    • Enter delete me.
    • Click Delete button. Delete topic confirmation
    • The topic is deleted successfully. Topic deleted successfully