:doc:`WorkMail <../../workmail>` / Client / delete_access_control_rule

**************************
delete_access_control_rule
**************************



.. py:method:: WorkMail.Client.delete_access_control_rule(**kwargs)

  

  Deletes an access control rule for the specified WorkMail organization.

   

  .. note::

    

    Deleting already deleted and non-existing rules does not produce an error. In those cases, the service sends back an HTTP 200 response with an empty HTTP body.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DeleteAccessControlRule>`_  


  **Request Syntax**
  ::

    response = client.delete_access_control_rule(
        OrganizationId='string',
        Name='string'
    )
    
  :type OrganizationId: string
  :param OrganizationId: **[REQUIRED]** 

    The identifier for the organization.

    

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

    The name of the access control rule.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`WorkMail.Client.exceptions.OrganizationNotFoundException`

  
  *   :py:class:`WorkMail.Client.exceptions.OrganizationStateException`

  