Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

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