If you want to delete an AWS SNS Topic using the AWS CLI you can make use of the aws sns unsubscribe command.
Let's take a look at an example.
Syntax:
aws sns unsubscribe --subscription-arn <subscription-arn>
Example:
% aws sns unsubscribe --subscription-arn
arn:aws:sns:us-east-1:5xx211xx5xx1:smsTopic:e25591a4-a7xx-45xx-acxx-7b1xx37bcxx8

-
Facing issues? Have Questions? Post them here! I am happy to answer!
More Posts related to AWS,
- Create S3 bucket and upload files using AWS Toolkit for Visual Studio Code
- Get the total size and number of objects of a AWS S3 bucket and folders
- Create an S3 bucket in a specific AWS region using CLI Command
- [Solution] AWS Java SDK S3 AmazonS3Exception InvalidAccessKeyId
- Fix AWS CLI 2 SignatureDoesNotMatch Error - Signature we calculated does not match
- 573 List of reserved keywords in AWS DynamoDB
- Quick way to setup AWS DynamoDB locally on macOS
- [Solution] com.amazonaws.dynamodb.v20120810 MissingAuthenticationToken Key Id or X.509 certificate
- Quick way to install AWS CLI for macOS Terminal
- Setting and Updating AWS CLI Configuration
- AWS S3 CLI BucketAlreadyExists when calling CreateBucket Error make_bucket failed
- How to install AWS Toolkit for Visual Studio Code
- Create S3 bucket using AWS CLI Command mb
- Fix: zsh: command not found: aws (Mac/macOS)
- How to install AWS CLI on Ubuntu
- Fix: Amazon Linux bash: sudo: command not found
- How to Setup AWS Credentials using Visual Studio Code
- AW3 CLI command to get list of all region names
- Most Essencial AWS CLI 2 S3 ls Command Options
- Install AWS CLI using Brew Command
More Posts:
- Cannot open or preview pdf with view only and restricted download access in Microsoft Teams - Teams
- Fix SharePoint 2019 installation error This product requires Visual C++ Redistributable Package for Visual Studio 2017 - SharePoint
- How to know the current version of Java - Java
- How to install Postman natively on a Mac - HowTos
- How to Manage Profile Picture on Microsoft Teams - Teams
- Spring Boot JDBCTemplate Upsert Example (batch insert or update if exists) - Java
- How to display date and time in GMT Timezone in Java - Java
- bash: netstat: command not found - Bash