:doc:`ComputeOptimizerAutomation <../../compute-optimizer-automation>` / Client / delete_automation_rule

**********************
delete_automation_rule
**********************



.. py:method:: ComputeOptimizerAutomation.Client.delete_automation_rule(**kwargs)

  

  Deletes an existing automation rule.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-automation-2025-09-22/DeleteAutomationRule>`_  


  **Request Syntax**
  ::

    response = client.delete_automation_rule(
        ruleArn='string',
        ruleRevision=123,
        clientToken='string'
    )
    
  :type ruleArn: string
  :param ruleArn: **[REQUIRED]** 

    The ARN of the rule to delete.

    

  
  :type ruleRevision: integer
  :param ruleRevision: **[REQUIRED]** 

    The revision number of the rule to delete.

    

  
  :type clientToken: string
  :param clientToken: 

    A unique identifier to ensure idempotency of the request.

    This field is autopopulated if not provided.

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`ComputeOptimizerAutomation.Client.exceptions.InvalidParameterValueException`

  
  *   :py:class:`ComputeOptimizerAutomation.Client.exceptions.ForbiddenException`

  
  *   :py:class:`ComputeOptimizerAutomation.Client.exceptions.OptInRequiredException`

  
  *   :py:class:`ComputeOptimizerAutomation.Client.exceptions.ResourceNotFoundException`

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

  
  *   :py:class:`ComputeOptimizerAutomation.Client.exceptions.IdempotentParameterMismatchException`

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

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

  
  *   :py:class:`ComputeOptimizerAutomation.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`ComputeOptimizerAutomation.Client.exceptions.IdempotencyTokenInUseException`

  