Rekognition.Client.
delete_project_version
(**kwargs)¶Deletes an Amazon Rekognition Custom Labels model.
You can't delete a model if it is running or if it is training. To check the status of a model, use the Status
field returned from DescribeProjectVersions. To stop a running model call StopProjectVersion. If the model 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'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the model version that you want to delete.
{
'Status': 'TRAINING_IN_PROGRESS'|'TRAINING_COMPLETED'|'TRAINING_FAILED'|'STARTING'|'RUNNING'|'FAILED'|'STOPPING'|'STOPPED'|'DELETING'|'COPYING_IN_PROGRESS'|'COPYING_COMPLETED'|'COPYING_FAILED'
}
Response Structure
The status of the deletion operation.
Exceptions
Rekognition.Client.exceptions.ResourceNotFoundException
Rekognition.Client.exceptions.ResourceInUseException
Rekognition.Client.exceptions.InvalidParameterException
Rekognition.Client.exceptions.AccessDeniedException
Rekognition.Client.exceptions.InternalServerError
Rekognition.Client.exceptions.ThrottlingException
Rekognition.Client.exceptions.ProvisionedThroughputExceededException