SNS.Client.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'
)
[REQUIRED]
The ARN of the topic you want to delete.
Exceptions
SNS.Client.exceptions.InvalidParameterExceptionSNS.Client.exceptions.InternalErrorExceptionSNS.Client.exceptions.AuthorizationErrorExceptionSNS.Client.exceptions.NotFoundExceptionSNS.Client.exceptions.StaleTagExceptionSNS.Client.exceptions.TagPolicyExceptionSNS.Client.exceptions.ConcurrentAccessException