:doc:`RecycleBin <../../rbin>` / Client / delete_rule

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



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

  

  Deletes a Recycle Bin retention rule. For more information, see `Delete Recycle Bin retention rules <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin-working-with-rules.html#recycle-bin-delete-rule>`__ in the *Amazon Elastic Compute Cloud User Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/DeleteRule>`_  


  **Request Syntax**
  ::

    response = client.delete_rule(
        Identifier='string'
    )
    
  :type Identifier: string
  :param Identifier: **[REQUIRED]** 

    The unique ID of the retention rule.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`RecycleBin.Client.exceptions.InternalServerException`

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

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

  
  *   :py:class:`RecycleBin.Client.exceptions.ConflictException`

  