Rekognition / Client / delete_project_version

delete_project_version#

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

Request Syntax

response = client.delete_project_version(
    ProjectVersionArn='string'
)
Parameters:

ProjectVersionArn (string) –

[REQUIRED]

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

Return type:

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