You can delete the training and test datasets from a project.
Deleting a dataset (Console)
Use the following procedure to delete a dataset. Afterwards, if the project has one remaining dataset (train or test), the project details page is shown. If the project has no remaining datasets, the Create dataset page is shown.
If you delete the training dataset, you must create a new training dataset for the project before you can train a model. For more information, see Creating training and test datasets with images.
If you delete the test dataset, you can train a model without creating a new test dataset. During training, the training dataset is split to create a new test dataset for the project. Splitting the training dataset reduces the number of images available for training. To maintain quality, we recommend creating a new test dataset before training a model. For more information, see Adding a dataset to a project.
To delete a dataset
Open the Amazon Rekognition console at https://console.aws.amazon.com/rekognition/
. -
In the left pane, choose Use Custom Labels. The Amazon Rekognition Custom Labels landing page is shown.
-
In the left navigation pane, choose Projects. The Projects view is shown.
-
Choose the project that contains the dataset that you want to delete.
-
In the left navigation pane, under the project name, choose Dataset
-
Choose Actions
-
To delete the training dataset, choose Delete training dataset.
-
To delete the test dataset, choose Delete test dataset.
-
In the Delete train or test dataset dialog box, enter delete to confirm that you want to delete the dataset.
-
Choose Delete train or test dataset to delete the dataset.
Deleting an Amazon Rekognition Custom Labels dataset
(SDK)
You delete an Amazon Rekognition Custom Labels dataset by calling DeleteDataset and supplying the
Amazon Resource Name (ARN) of the dataset that you want to delete. To get the ARNs
of the training and test datasets within a project, call DescribeProjects. The response
includes an array of ProjectDescription objects. The dataset ARNs (DatasetArn
)
and dataset types (DatasetType
) are in the Datasets
list.
If you delete the training dataset, you need to create a new training dataset for the project before you can train a model. If you delete the test dataset, you need to create a new test dataset before you can train the model. For more information, see Adding a dataset to a project (SDK).
To delete a dataset (SDK)
-
If you haven't already done so, install and configure the AWS CLI and the AWS SDKs. For more information, see Step 4: Set up the AWS CLI and AWS SDKs.
-
Use the following code to delete a dataset.
Change the value of
dataset-arn
with the ARN of the dataset that you want to delete.aws rekognition delete-dataset --dataset-arn
dataset-arn
\ --profile custom-labels-access