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

*************
delete_filter
*************



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

  

  Deletes the filter specified by the filter name.

  

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


  **Request Syntax**
  ::

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

    The unique ID of the detector that is associated with the filter.

     

    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 FilterName: string
  :param FilterName: **[REQUIRED]** 

    The name of the filter that you want to delete.

    

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

    
    ::

      {}
      
    **Response Structure**

    

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

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

  