:doc:`WAFV2 <../../wafv2>` / Client / delete_firewall_manager_rule_groups

***********************************
delete_firewall_manager_rule_groups
***********************************



.. py:method:: WAFV2.Client.delete_firewall_manager_rule_groups(**kwargs)

  

  Deletes all rule groups that are managed by Firewall Manager from the specified  WebACL.

   

  You can only use this if ``ManagedByFirewallManager`` and ``RetrofittedByFirewallManager`` are both false in the web ACL.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/DeleteFirewallManagerRuleGroups>`_  


  **Request Syntax**
  ::

    response = client.delete_firewall_manager_rule_groups(
        WebACLArn='string',
        WebACLLockToken='string'
    )
    
  :type WebACLArn: string
  :param WebACLArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the web ACL.

    

  
  :type WebACLLockToken: string
  :param WebACLLockToken: **[REQUIRED]** 

    A token used for optimistic locking. WAF returns a token to your ``get`` and ``list`` requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like ``update`` and ``delete``. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a ``WAFOptimisticLockException``. If this happens, perform another ``get``, and use the new token returned by that operation.

    

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

    
    ::

      {
          'NextWebACLLockToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **NextWebACLLockToken** *(string) --* 

        A token used for optimistic locking. WAF returns a token to your ``get`` and ``list`` requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like ``update`` and ``delete``. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a ``WAFOptimisticLockException``. If this happens, perform another ``get``, and use the new token returned by that operation.

        
  
  **Exceptions**
  
  *   :py:class:`WAFV2.Client.exceptions.WAFInternalErrorException`

  
  *   :py:class:`WAFV2.Client.exceptions.WAFInvalidParameterException`

  
  *   :py:class:`WAFV2.Client.exceptions.WAFNonexistentItemException`

  
  *   :py:class:`WAFV2.Client.exceptions.WAFOptimisticLockException`

  
  *   :py:class:`WAFV2.Client.exceptions.WAFInvalidOperationException`

  