:doc:`OpenSearchServiceServerless <../../opensearchserverless>` / Client / delete_access_policy

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



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

  

  Deletes an OpenSearch Serverless access policy. For more information, see `Data access control for Amazon OpenSearch Serverless <https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-data-access.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/DeleteAccessPolicy>`_  


  **Request Syntax**
  ::

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

    The type of policy.

    

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

    The name of the policy to delete.

    

  
  :type clientToken: string
  :param clientToken: 

    Unique, case-sensitive identifier to ensure idempotency of the request.

    This field is autopopulated if not provided.

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`OpenSearchServiceServerless.Client.exceptions.InternalServerException`

  
  *   :py:class:`OpenSearchServiceServerless.Client.exceptions.ConflictException`

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

  
  *   :py:class:`OpenSearchServiceServerless.Client.exceptions.ValidationException`

  