Amazon Web Services (AWS) - Delete Simple Notification Service (SNS) Topics using the AWS CLI

by
Jeremy Canfield |
Updated: August 03 2023
| Amazon Web Services (AWS) articles
This assumes you have already configured the aws command line tool. If not, check out my article on Getting Started with the AWS CLI.
A Simple Notification Service (SNS) Topic can be used to create notification alerts, such as an email notification.
The aws sns list-topics command can be used to list your Simple Notification Service (SNS) Topics.
aws sns list-topics
Something like this should be returned.
{
"Topics": [
{
"TopicArn": "arn:aws:sns:us-east-1:123456789012:myTopic.fifo"
}
]
}
The aws sns delete-topic command can be used to delete a Topic.
aws sns delete-topic --topic-arn arn:aws:sns:us-east-1:123456789012:myTopic.fifo
Did you find this article helpful?
If so, consider buying me a coffee over at