delete_topic

delete_topic(**kwargs)

Deletes a topic and all its subscriptions. Deleting a topic might prevent some messages previously sent to the topic from being delivered to subscribers. This action is idempotent, so deleting a topic that does not exist does not result in an error.

See also: AWS API Documentation

Request Syntax

response = client.delete_topic(
    TopicArn='string'
)
Parameters
TopicArn (string) --

[REQUIRED]

The ARN of the topic you want to delete.

Returns
None

Exceptions

  • SNS.Client.exceptions.InvalidParameterException
  • SNS.Client.exceptions.InternalErrorException
  • SNS.Client.exceptions.AuthorizationErrorException
  • SNS.Client.exceptions.NotFoundException
  • SNS.Client.exceptions.StaleTagException
  • SNS.Client.exceptions.TagPolicyException
  • SNS.Client.exceptions.ConcurrentAccessException