:doc:`GuardDuty <../../guardduty>` / Client / delete_publishing_destination

*****************************
delete_publishing_destination
*****************************



.. py:method:: GuardDuty.Client.delete_publishing_destination(**kwargs)

  

  Deletes the publishing definition with the specified ``destinationId``.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeletePublishingDestination>`_  


  **Request Syntax**
  ::

    response = client.delete_publishing_destination(
        DetectorId='string',
        DestinationId='string'
    )
    
  :type DetectorId: string
  :param DetectorId: **[REQUIRED]** 

    The unique ID of the detector associated with the publishing destination to delete.

     

    To find the ``detectorId`` in the current Region, see the Settings page in the GuardDuty console, or run the `ListDetectors <https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html>`__ API.

    

  
  :type DestinationId: string
  :param DestinationId: **[REQUIRED]** 

    The ID of the publishing destination to delete.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`GuardDuty.Client.exceptions.BadRequestException`

  
  *   :py:class:`GuardDuty.Client.exceptions.InternalServerErrorException`

  