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 DeleteDataset operation.

This operation applies only to Amazon Rekognition Custom Labels.

Deletes an existing Amazon Rekognition Custom Labels dataset. Deleting a dataset might take while. Use DescribeDataset to check the current status. The dataset is still deleting if the value of Status is DELETE_IN_PROGRESS. If you try to access the dataset after it is deleted, you get a ResourceNotFoundException exception.

You can't delete a dataset while it is creating (Status = CREATE_IN_PROGRESS) or if the dataset is updating (Status = UPDATE_IN_PROGRESS).

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

Inheritance Hierarchy

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

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

Syntax

C#
public class DeleteDatasetRequest : AmazonRekognitionRequest
         IAmazonWebServiceRequest

The DeleteDatasetRequest type exposes the following members

Constructors

NameDescription
Public Method DeleteDatasetRequest()

Properties

NameTypeDescription
Public Property DatasetArn System.String

Gets and sets the property DatasetArn.

The ARN of the Amazon Rekognition Custom Labels dataset that you want to delete.

Examples

Deletes an Amazon Rekognition Custom Labels dataset.

To delete an Amazon Rekognition Custom Labels dataset


var client = new AmazonRekognitionClient();
var response = client.DeleteDataset(new DeleteDatasetRequest 
{
    DatasetArn = "arn:aws:rekognition:us-east-1:111122223333:project/my-project/dataset/test/1690556733321"
});


            

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