Deleting the Amazon S3 buckets - Enhanced Document Understanding on AWS

Deleting the Amazon S3 buckets

To prevent accidental data loss, we configured this solution to retain the solution-created S3 bucket if you decide to delete the CloudFormation stack. After uninstalling the solution, you can manually delete this S3 bucket if you don’t need to retain the data. Follow these steps to delete the Amazon S3 bucket.

  1. Sign in to the Amazon S3 console.

  2. Choose Buckets from the navigation pane.

  3. Locate the <stack-name> S3 buckets.

  4. Select each S3 bucket and choose Delete.

To delete the S3 bucket using AWS CLI, run the following command for each S3 bucket:

$ aws s3 rb s3://<bucket-name> --force