Deleting data protection policies in Amazon SNS - Amazon Simple Notification Service

Deleting data protection policies in Amazon SNS

You can delete Amazon SNS data protection policies using the AWS API, AWS CLI, AWS CloudFormation, or AWS Management Console.

For general information about Amazon SNS data protection policies, see Understanding data protection policies.

The number and size of Amazon SNS data protection policy resources in an AWS account are limited. For more information, see Amazon SNS API throttling in AWS General Reference.

Deleting data protection policies (Console)

To delete a managed data protection policy (Console)
  1. Sign in to the Amazon SNS console.

  2. Choose the topic that contains the data protection policy that you want to delete.

  3. Choose Edit.

  4. Expand the Data protection policy section.

  5. Choose Remove next to the data protection policy statement that you want to remove.

  6. Choose Save changes.

Deleting a data protection policy using an empty JSON string

You can delete a data protection policy by updating it to an empty JSON string.

Deleting a data protection policy using the AWS CLI

You can delete a data protection policy using the AWS CLI.

//aws sns put-data-protection-policy --resource-arn topic-arn --data-protection-policy ""