:doc:`IoTSiteWise <../../iotsitewise>` / Client / delete_access_policy

********************
delete_access_policy
********************



.. py:method:: IoTSiteWise.Client.delete_access_policy(**kwargs)

  

  Deletes an access policy that grants the specified identity access to the specified IoT SiteWise Monitor resource. You can use this operation to revoke access to an IoT SiteWise Monitor resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteAccessPolicy>`_  


  **Request Syntax**
  ::

    response = client.delete_access_policy(
        accessPolicyId='string',
        clientToken='string'
    )
    
  :type accessPolicyId: string
  :param accessPolicyId: **[REQUIRED]** 

    The ID of the access policy to be deleted.

    

  
  :type clientToken: string
  :param clientToken: 

    A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.

    This field is autopopulated if not provided.

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`IoTSiteWise.Client.exceptions.InvalidRequestException`

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

  
  *   :py:class:`IoTSiteWise.Client.exceptions.InternalFailureException`

  
  *   :py:class:`IoTSiteWise.Client.exceptions.ThrottlingException`

  