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

**********************
delete_project_version
**********************



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

  

  Deletes a Rekognition project model or project version, like a Amazon Rekognition Custom Labels model or a custom adapter.

   

  You can't delete a project version if it is running or if it is training. To check the status of a project version, use the Status field returned from  DescribeProjectVersions. To stop a project version call  StopProjectVersion. If the project version is training, wait until it finishes.

   

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

  

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


  **Request Syntax**
  ::

    response = client.delete_project_version(
        ProjectVersionArn='string'
    )
    
  :type ProjectVersionArn: string
  :param ProjectVersionArn: **[REQUIRED]** 

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

    

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

    
    ::

      {
          'Status': 'TRAINING_IN_PROGRESS'|'TRAINING_COMPLETED'|'TRAINING_FAILED'|'STARTING'|'RUNNING'|'FAILED'|'STOPPING'|'STOPPED'|'DELETING'|'COPYING_IN_PROGRESS'|'COPYING_COMPLETED'|'COPYING_FAILED'|'DEPRECATED'|'EXPIRED'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Status** *(string) --* 

        The status of the deletion operation.

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

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

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

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

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

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

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

  