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.
To fully cancel and delete an Amazon Simple Notification Service (SNS) topic and its subscriptions, follow these steps:
delete me
, and then choose Delete. This will delete the topic and all its associated subscriptions asynchronously.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