I am trying to delete a subscription to an SNS topic (specifically an email address) that is unconfirmed, but the AWS console won't let me. It will let me delete subscriptions that are confirmed however. Any ideas?
-
Also with the API - they cannot be deleted. Anything? – Amir Mehler Jun 25 '16 at 12:03
-
You can always delete then recreate the topic. Easy to do with IaC (and minimal downtime). – Brent Bradburn Feb 17 '22 at 17:00
6 Answers
According to SNS architecture and design:
If subscription is APPROVED so no matter whether there is topic associated to it or not. User will be able to delete the subscription.)
If subscription is PENDING so no matter whether there is topic associated to it or not. Amazon will delete automatically the subscription after 3 days of creation.
See the FAQ for more info (scroll down to the question titled "How long will subscription requests remain pending, while waiting to be confirmed?")
-
4
-
-
8It makes absolutely no sense to not be able to delete it from the console. What if I put a wrong URL? What's the big deal if I were able to remove it? After all I'm the owner of the topic. I can delete the topic itself but not a subscription to the topic ?! – Bogdan Calmac Jul 11 '20 at 01:11
-
4https://docs.aws.amazon.com/sns/latest/dg/sns-tutorial-delete-subscription-topic.html `You can't delete a pending confirmation. After 3 days, Amazon SNS deletes it automatically.` – gomisha Aug 24 '20 at 21:02
-
1@gomisha the link in your comment is not valid anymore. Here is the updated link https://docs.aws.amazon.com/sns/latest/dg/sns-delete-subscription-topic.html – Manos Pasgiannis Jan 18 '22 at 08:07
-
Here is what the FAQ mentions: "Token included in the confirmation message sent to end-points on a subscription request are valid for 3 days". The TOKEN is valid for 3 days. It is not saying that the pending confirmation will be removed. The pending confirmation remains. I have one pending since 3 months. – gk_2000 May 05 '22 at 06:41
I have seen email subscriptions hanging around indefinitely in the PendingConfirmation state and as you mention, they can't be deleted using the web console. Also, after a few days the link in the subscription confirmation email expires, so you can't click to confirm the subscription and then delete it either.
However, assuming you still have access to the email address, you can create a new subscription in the web console for the SNS topic using the same email address. This doesn't actually result in a separate subscription as it seems that an email address can only be subscribed once. However, it does send another email with a new confirmation link which you can click to confirm the subscription. Once it's confirmed, you can finally delete the subscription in the SNS web console.

- 2,903
- 2
- 18
- 16
-
1I am also having the same issue. The subscription has been in Pending status for a long time and it has become orphaned. The Topic got deleted, but the subscription is still there. No matter what I do, I am unable to get rid of this Pending subscription. Any help will be greatly appreciated. – Ven May 25 '20 at 17:23
I had the problem with an unconfirmed SQS subscription. When deleting the pending subscription, resubscribing the queue resulted in the awkward state that it was subscribed with the deleted pending subscription so no messages would be delivered.
I fixed that by setting up a subscription in the topic's account which triggered a new confirmation message to be send. Once the subscription was confirmed (manually), it replaced the deleted pending subscription and the queue received messages again. Also, the subscription could be fully removed without the deleted pending subscription reappearing.
No idea if a similar approach would work for email subscriptions.

- 1,640
- 12
- 24
-
Thanks for sharing, I had the exact same issue where a Successful subscription was not showing up in the console, because earlier I had an unconfirmed subscription. – Shailesh Nov 10 '22 at 12:44
I don't think you can, but they should disappear after 3 days if they are not confirmed....so you may just need to wait.

- 45,870
- 7
- 88
- 116
-
9Hmm, its been more than 3 days with them unconfirmed and they are still lingering... – wjimenez5271 Mar 25 '14 at 19:01
As of May 2023, SNS now supports faster automatic deletion of unconfirmed subscriptions. This has reduced the time for SNS to delete your unconfirmed subscriptions, from the previous 72 hours to 48 hours. This applies to all new subscriptions, and does not require any on-boarding. For more information: https://aws.amazon.com/about-aws/whats-new/2023/05/amazon-sns-automatic-deletion-unconfirmed-subscriptions/

- 755
- 6
- 11
If it doesn't disappear after 3 days, try resending the confirmation request by selecting the subscription and clicking "Request confirmations." This will retrigger the 3-day countdown for automatic removal, and it should be removed after 3 days if the subscription is still not confirmed.

- 1,180
- 1
- 10
- 13