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

********************************
delete_mobile_device_access_rule
********************************



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

  

  Deletes a mobile device access 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/DeleteMobileDeviceAccessRule>`_  


  **Request Syntax**
  ::

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

    The WorkMail organization under which the rule will be deleted.

    

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

    The identifier of the rule to be deleted.

    

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

    
    ::

      {}
      
    **Response Structure**

    

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

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

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

  