:doc:`VerifiedPermissions <../../verifiedpermissions>` / Client / delete_policy

*************
delete_policy
*************



.. py:method:: VerifiedPermissions.Client.delete_policy(**kwargs)

  

  Deletes the specified policy from the policy store.

   

  This operation is idempotent; if you specify a policy that doesn't exist, the request response returns a successful ``HTTP 200`` status code.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/verifiedpermissions-2021-12-01/DeletePolicy>`_  


  **Request Syntax**
  ::

    response = client.delete_policy(
        policyStoreId='string',
        policyId='string'
    )
    
  :type policyStoreId: string
  :param policyStoreId: **[REQUIRED]** 

    Specifies the ID of the policy store that contains the policy that you want to delete.

    

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

    Specifies the ID of the policy that you want to delete.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`VerifiedPermissions.Client.exceptions.ValidationException`

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

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

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

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

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

  