deleteProjectVersion

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.

Samples


fun main() { 
   //sampleStart 
   // Deletes a version of an Amazon Rekognition Custom Labels model.
val resp = rekognitionClient.deleteProjectVersion {
    projectVersionArn = "arn:aws:rekognition:us-east-1:111122223333:project/my-project/version/1/1690556751958"
} 
   //sampleEnd
}