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 DeleteProject operation. Deletes a Amazon Rekognition project. To delete a project you must first delete all models or adapters associated with the project. To delete a model or adapter, see DeleteProjectVersion.

DeleteProject is an asynchronous operation. To check if the project is deleted, call DescribeProjects. The project is deleted when the project no longer appears in the response. Be aware that deleting a given project will also delete any ProjectPolicies associated with that project.

This operation requires permissions to perform the rekognition:DeleteProject action.

Inheritance Hierarchy

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

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

Syntax

C#
public class DeleteProjectRequest : AmazonRekognitionRequest
         IAmazonWebServiceRequest

The DeleteProjectRequest type exposes the following members

Constructors

NameDescription
Public Method DeleteProjectRequest()

Properties

NameTypeDescription
Public Property ProjectArn System.String

Gets and sets the property ProjectArn.

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

Examples

Deletes an Amazon Rekognition Custom Labels projects.

To delete an Amazon Rekognition Custom Labels project


var client = new AmazonRekognitionClient();
var response = client.DeleteProject(new DeleteProjectRequest 
{
    ProjectArn = "arn:aws:rekognition:us-east-1:111122223333:project/my-project/1690405809285"
});

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