Uninstall the solution - AWS Content Analysis

Uninstall the solution

You can uninstall the AWS Content Analysis solution, delete the AWS CloudFormation stack by using either the AWS Management Console or the AWS Command Line Interface (AWS CLI). This deletes all the resources created for the AWS Content Analysis solution except the Dataplane and the DataplaneLogs Amazon S3 buckets. These two buckets are retained when the solution stack is deleted in order to help prevent accidental data loss. After deleting the CloudFormation stack, you can use either the AWS Management Console or the AWS CLI to empty, then delete those S3 buckets.

Using the AWS Management Console

  1. Sign in to the AWS CloudFormation console.

  2. On the Stacks page, select the solution's installation stack.

  3. Choose Delete.

Using AWS Command Line Interface

Verify that the AWS Command Line Interface (AWS CLI) is available in your environment. For installation instructions, refer to What Is the AWS Command Line Interface in the AWS CLI User Guide. After confirming the AWS CLI is available, run the following command.

$ aws cloudformation delete-stack --stack-name <installation-stack-name> --region <aws-region>

Deleting the Amazon S3 buckets

This solution is configured to retain the solution-created Dataplane and DataplaneLogsAmazon S3 buckets to prevent against accidental data loss if you decide to delete the AWS CloudFormation stack. After uninstalling the solution, you can manually delete these S3 buckets if you do not need to retain the data. Follow these steps to delete the Amazon S3 buckets.

  1. Sign in to the Amazon S3 console.

  2. Choose Buckets from the left navigation pane.

  3. Locate the Dataplane S3 bucket.

  4. Select the S3 bucket and choose Empty.

  5. Select the S3 bucket and choose Delete.

  6. Locate the DataplaneLogs S3 bucket.

  7. Select the S3 bucket and choose Empty.

  8. Select the S3 bucket and choose Delete.

To delete the S3 buckets using AWS CLI, run the following command:

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