Skip to content

delete subscriptions in cloud watch

0

I have mistakenly deleted my topics associated with subscriptions. Now my subscriptions are not deleting. Please delete all my subscriptions

asked a year ago154 views

1 Answer
1

When you delete an SNS topic before deleting its subscriptions, the subscriptions enter a "Deleted" status but aren't immediately removed from your account. This is a common issue that can occur in two scenarios:

  1. When a member of an SNS topic mailing list selects the unsubscribe link in an email
  2. When an Amazon SQS queue in another AWS account that's subscribed to the topic deletes the cross-account subscription

For subscriptions in the "Deleted" status, you cannot manually remove them. Amazon SNS will automatically remove these subscriptions after two days (48 hours). You'll need to wait for this automatic cleanup process to complete.

If you're referring to CloudWatch Logs subscription filters (which are different from SNS subscriptions), you can delete those using the DeleteSubscriptionFilter API. This would require specifying both the filter name and the log group name in your request.

Unfortunately, there's no way to force immediate deletion of SNS subscriptions that are already in the "Deleted" status - you'll need to wait for the automatic cleanup to occur.
Sources
Unable to delete subscription | AWS re:Post
Troubleshoot deleting an Amazon SNS topic subscription | AWS re:Post
Use DeleteSubscriptionFilter with an AWS SDK - Amazon CloudWatch Logs

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.