:doc:`AuroraDSQL <../../dsql>` / Client / delete_cluster_policy

*********************
delete_cluster_policy
*********************



.. py:method:: AuroraDSQL.Client.delete_cluster_policy(**kwargs)

  

  Deletes the resource-based policy attached to a cluster. This removes all access permissions defined by the policy, reverting to default access controls.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/dsql-2018-05-10/DeleteClusterPolicy>`_  


  **Request Syntax**
  ::

    response = client.delete_cluster_policy(
        identifier='string',
        expectedPolicyVersion='string',
        clientToken='string'
    )
    
  :type identifier: string
  :param identifier: **[REQUIRED]** 

    The ID of the cluster.

    

  
  :type expectedPolicyVersion: string
  :param expectedPolicyVersion: 

    The expected version of the policy to delete. This parameter ensures that you're deleting the correct version of the policy and helps prevent accidental deletions.

    

  
  :type clientToken: string
  :param clientToken: 

    Idempotency token so a request is only processed once.

    This field is autopopulated if not provided.

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

    
    ::

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

    

    - *(dict) --* 
      

      - **policyVersion** *(string) --* 

        The version of the policy that was deleted.

        
  
  **Exceptions**
  
  *   :py:class:`AuroraDSQL.Client.exceptions.ThrottlingException`

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

  
  *   :py:class:`AuroraDSQL.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`AuroraDSQL.Client.exceptions.InternalServerException`

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

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

  