Amazon Simple Notification Service
Developer Guide (API Version 2010-03-31)

Clean Up

You have created a topic, subscribed to it, and published a message to the topic. Now you clean up your environment by unsubscribing from the topic and then deleting the topic.

To unsubscribe from a topic

  1. Open the Amazon SNS console at https://console.aws.amazon.com/sns/v2/home.

    In the left navigation pane, choose Subscriptions.

    The Subscriptions page opens.

  2. Select your subscription in the subscription list. This will be the only listing on the page, unless you created more than one subscription.

  3. Choose the Actions drop-down list and then choose Delete subscription(s).

    The Delete confirmation dialog box appears.

  4. Choose Delete.

The subscription is deleted, unless it is a pending subscription, meaning it has not yet been confirmed. You cannot delete a pending subscription, but if it remains pending for 3 days, Amazon SNS automatically deletes it.

To delete a topic

Open the Amazon SNS console at https://console.aws.amazon.com/sns/v2/home.

  1. In the left navigation pane, choose Topics, and then select the topic you want to delete.

  2. Choose the Actions drop-down list and select Delete topics.

    The Delete confirmation dialog box appears.

  3. Choose Delete.

    When you delete a topic, you also delete all subscriptions to that topic.