:doc:`SES <../../ses>` / Client / delete_receipt_rule_set

***********************
delete_receipt_rule_set
***********************



.. py:method:: SES.Client.delete_receipt_rule_set(**kwargs)

  

  Deletes the specified receipt rule set and all of the receipt rules it contains.

   

  .. note::

    

    The currently active rule set cannot be deleted.

    

   

  For information about managing receipt rule sets, see the `Amazon SES Developer Guide <https://docs.aws.amazon.com/ses/latest/dg/receiving-email-receipt-rules-console-walkthrough.html>`__.

   

  You can execute this operation no more than once per second.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/DeleteReceiptRuleSet>`_  


  **Request Syntax**
  ::

    response = client.delete_receipt_rule_set(
        RuleSetName='string'
    )
    
  :type RuleSetName: string
  :param RuleSetName: **[REQUIRED]** 

    The name of the receipt rule set to delete.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 

      An empty element returned on a successful request.

      
  
  **Exceptions**
  
  *   :py:class:`SES.Client.exceptions.CannotDeleteException`

  

  **Examples**

  The following example deletes a receipt rule set:
  ::

    response = client.delete_receipt_rule_set(
        RuleSetName='MyRuleSet',
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'ResponseMetadata': {
            '...': '...',
        },
    }

  