:doc:`SNS <../../sns>` / Client / delete_topic

************
delete_topic
************



.. py:method:: 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 <https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/DeleteTopic>`_  


  **Request Syntax**
  ::

    response = client.delete_topic(
        TopicArn='string'
    )
    
  :type TopicArn: string
  :param TopicArn: **[REQUIRED]** 

    The ARN of the topic you want to delete.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`SNS.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`SNS.Client.exceptions.InvalidStateException`

  
  *   :py:class:`SNS.Client.exceptions.InternalErrorException`

  
  *   :py:class:`SNS.Client.exceptions.AuthorizationErrorException`

  
  *   :py:class:`SNS.Client.exceptions.NotFoundException`

  
  *   :py:class:`SNS.Client.exceptions.StaleTagException`

  
  *   :py:class:`SNS.Client.exceptions.TagPolicyException`

  
  *   :py:class:`SNS.Client.exceptions.ConcurrentAccessException`

  