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

sns-delete-topic

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 topic and all its subscriptions.

Syntax

Copy
sns-delete-topic TopicArn [--force value] [General Options]

Options

Name Description Required

TopicArn

The ARN of the topic to delete.

Yes

-f, --force

Delete a topic without being prompted for confirmation.

No

Example

This example deletes a topic with ARN arn:aws:sns:us-east-1:365928882516:Foo.

Copy
$PROMPT> sns-delete-topic arn:aws:sns:us-east-1:365928882516:Foo