:doc:`FraudDetector <../../frauddetector>` / Client / delete_rule

***********
delete_rule
***********



.. py:method:: FraudDetector.Client.delete_rule(**kwargs)

  

  Deletes the rule. You cannot delete a rule if it is used by an ``ACTIVE`` or ``INACTIVE`` detector version.

   

  When you delete a rule, Amazon Fraud Detector permanently deletes that rule and the data is no longer stored in Amazon Fraud Detector.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteRule>`_  


  **Request Syntax**
  ::

    response = client.delete_rule(
        rule={
            'detectorId': 'string',
            'ruleId': 'string',
            'ruleVersion': 'string'
        }
    )
    
  :type rule: dict
  :param rule: **[REQUIRED]** 

    A rule.

    

  
    - **detectorId** *(string) --* **[REQUIRED]** 

      The detector for which the rule is associated.

      

    
    - **ruleId** *(string) --* **[REQUIRED]** 

      The rule ID.

      

    
    - **ruleVersion** *(string) --* **[REQUIRED]** 

      The rule version.

      

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`FraudDetector.Client.exceptions.ConflictException`

  
  *   :py:class:`FraudDetector.Client.exceptions.ValidationException`

  
  *   :py:class:`FraudDetector.Client.exceptions.InternalServerException`

  
  *   :py:class:`FraudDetector.Client.exceptions.ThrottlingException`

  
  *   :py:class:`FraudDetector.Client.exceptions.AccessDeniedException`

  