:doc:`Rekognition <../../rekognition>` / Client / delete_project_policy

*********************
delete_project_policy
*********************



.. py:method:: Rekognition.Client.delete_project_policy(**kwargs)

  

  .. note::

    

    This operation applies only to Amazon Rekognition Custom Labels.

    

   

  Deletes an existing project policy.

   

  To get a list of project policies attached to a project, call  ListProjectPolicies. To attach a project policy to a project, call  PutProjectPolicy.

   

  This operation requires permissions to perform the ``rekognition:DeleteProjectPolicy`` action.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/rekognition-2016-06-27/DeleteProjectPolicy>`_  


  **Request Syntax**
  ::

    response = client.delete_project_policy(
        ProjectArn='string',
        PolicyName='string',
        PolicyRevisionId='string'
    )
    
  :type ProjectArn: string
  :param ProjectArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the project that the project policy you want to delete is attached to.

    

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

    The name of the policy that you want to delete.

    

  
  :type PolicyRevisionId: string
  :param PolicyRevisionId: 

    The ID of the project policy revision that you want to delete.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Rekognition.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`Rekognition.Client.exceptions.InternalServerError`

  
  *   :py:class:`Rekognition.Client.exceptions.InvalidParameterException`

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

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

  
  *   :py:class:`Rekognition.Client.exceptions.ProvisionedThroughputExceededException`

  
  *   :py:class:`Rekognition.Client.exceptions.InvalidPolicyRevisionIdException`

  