How to Cancel Amazon Simple Notification Service SNS - Subscribed.FYI
Categories
Explore by Category
  • Analytics Tools and Software
  • Banking, Finance, Money & Insurance
  • Collaboration and Productivity Software
  • Creative Tools
  • Customer Service Software
  • Development Software
  • Healthcare & Medical Services
  • Human Resource Software
  • Marketing Software
  • Security Software
See All Categories
Amazon Simple Notification Service SNS
81%
Visit Website

Amazon Simple Notification Service SNS

81%

Amazon Simple Notification Service (SNS) is a scalable push notification service designed for application-to-application (A2A) and application-to-person (A2P) communication. It enables message delivery to mobile devices, email recipients, and distributed services with minimal delay. With its simplicity, integration with other AWS services, and pay-as-you-go pricing, SNS is ideal for real-time notifications, alerts, and message broadcasting. It ensures reliable delivery and scalability for critical, time-sensitive applications.

How to Cancel Amazon Simple Notification Service SNS

To fully cancel and delete an Amazon Simple Notification Service (SNS) topic and its subscriptions, follow these steps:

Deleting an SNS Subscription

  • Sign in to the Amazon SNS console.
  • In the left navigation pane, choose Subscriptions.
  • On the Subscriptions page, select the subscription you want to delete. Ensure the subscription is in the Confirmed status. If it is not, you cannot delete it directly.
    • If the subscription is in the Pending Confirmation or Deleted status, you must wait two days for Amazon SNS to automatically remove it, or resubscribe and then delete it.

Steps to Delete a Confirmed Subscription

  • Select the check boxes for the subscriptions you want to delete.
  • Choose Actions, and then choose Delete Subscriptions.
  • In the Delete window, choose Delete. Amazon SNS will delete the subscription and display a success message.

Deleting an SNS Topic

  • Sign in to the Amazon SNS console.
  • In the left navigation pane, choose Topics.
  • On the Topics page, select the topic you want to delete.
  • Choose Delete.
  • In the Delete topic dialog box, enter delete me, and then choose Delete. This will delete the topic and all its associated subscriptions asynchronously.

Additional Considerations

  • If a subscription requires authentication for deletion (e.g., Amazon SQS queue subscriptions), only the owner of the subscription or the topic’s owner can unsubscribe using the required AWS signature.
  • For email, HTTP, and HTTPS endpoints, three days must elapse before the subscription is removed from your account after you delete it.

Using the AWS SDK

If you prefer to use the AWS SDK, you can delete a subscription by submitting an Unsubscribe request with the subscription ARN. Similarly, you can delete a topic by submitting a DeleteTopic request with the topic ARN.

To delete a subscription using the AWS SDK, you would use a request like this:

https://sns.us-east-2.amazonaws.com/?Action=Unsubscribe
&SubscriptionArn=arn%3Aaws%3Asns%3Aus-east-2%3A123456789012%3AMy-Topic%3A80289ba6-0fd4-4079-afb4-ce8c8260f0ca
&Version=2010-03-31
&AUTHPARAMS

And to delete a topic:

https://sns.us-east-2.amazonaws.com/?Action=DeleteTopic
&TopicArn=arn%3Aaws%3Asns%3Aus-east-2%3A123456789012%3AMy-Topic
&Version=2010-03-31
&AUTHPARAMS