AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the DeleteProjectVersion operation. 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.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.Rekognition.AmazonRekognitionRequest
      Amazon.Rekognition.Model.DeleteProjectVersionRequest

Namespace: Amazon.Rekognition.Model
Assembly: AWSSDK.Rekognition.dll
Version: 3.x.y.z

Syntax

C#
public class DeleteProjectVersionRequest : AmazonRekognitionRequest
         IAmazonWebServiceRequest

The DeleteProjectVersionRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property ProjectVersionArn System.String

Gets and sets the property ProjectVersionArn.

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

Examples

Deletes a version of an Amazon Rekognition Custom Labels model.

To delete an Amazon Rekognition Custom Labels model


var client = new AmazonRekognitionClient();
var response = client.DeleteProjectVersion(new DeleteProjectVersionRequest 
{
    ProjectVersionArn = "arn:aws:rekognition:us-east-1:111122223333:project/my-project/version/1/1690556751958"
});

string status = response.Status;

            

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5