Uninstall the solution - Predictive Segmentation Using Amazon Pinpoint and Amazon SageMaker

Uninstall the solution

To uninstall this solution, use the AWS Management Console or the AWS Command Line Interface (AWS CLI). Note that you must manually delete the Amazon Simple Storage Service (Amazon S3) buckets created by this solution.

Using the AWS Management Console

  1. Sign in to the AWS CloudFormation console.

  2. On the Stacks page, choose the stack created from the earlier version of this solution.

  3. Choose Delete to open the confirmation dialog and choose Delete stack.


    The solution is configured to retain all Amazon S3 buckets, Amazon CloudWatch logs, and any previously imported Amazon Pinpoint segments in order to retain all data. The SageMaker model that was previous deployed will also be retained. Deleting the stack will remove all other configured service artifacts. In AWS CloudFormation, choose the Resources tab to view all service artifacts.

Using AWS Command Line Interface

Determine whether 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 that the AWS CLI is available, run the following command.

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

Deleting the Amazon S3 buckets

  1. Sign in to the Amazon S3 console.

  2. Choose Buckets from the left navigation pane.

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

  4. Select one of the S3 buckets and choose Delete.

Repeat the steps until you have deleted all of the <stack-name> S3 buckets.

Alternatively, you can configure the AWS CloudFormation template to delete the Amazon S3 buckets automatically. Before deleting the stack, change the deletion behavior in the AWS CloudFormation DeletionPolicy attribute.