Menu
Amazon Simple Notification Service
CLI Reference (API Version 2010-03-31)

sns-unsubscribe

The Amazon SNS CLI has been deprecated and is no longer supported. Please use the AWS Unified CLI or the AWS Tools for Windows PowerShell instead. To map the old SNS CLI commands to the AWS Unified CLI or PowerShell, see Migrating Amazon SNS CLI Commands to AWS CLI and PowerShell Commands.

Description

Deletes a subscription from a topic. Unsubscribing can result in a confirmation message to the subscription's endpoint.

Syntax

Copy
sns-unsubscribe SubscriptionArn [General Options]

Options

Name Description Required

SubscriptionArn

The ARN of the subscription to delete.

Yes

Output

Returns a message stating that the request succeeded.

Example

This example unsubscribes from subscription ARN arn:aws:sns:us-east-1:365928882516:Foo:02034b43-fefa-4e07-a5eb-3be56f8c54ce.

Copy
$PROMPT> sns-unsubscribe arn:aws:sns:us-east-1:365928882516:Foo:02034b43-fefa-4e07-a5eb-3be56f8c54ce