Deleting a dataset to delete all of its data
To delete all of the data in a dataset, you delete the dataset. You can delete a dataset with the Amazon Personalize console, Amazon Command Line Interface (Amazon CLI), or Amazon SDKs. Before you delete a dataset, note the following:
-
You must delete all filters before deleting any dataset.
-
If you created an event tracker, you must delete it before you delete an Item interactions dataset.
-
If you created a metric attribution that references the dataset, you must delete the metric attribution first.
-
If you use User-Personalization-v2, User-Personalization, or Next-Best-Action recipes or Top picks for you and Recommended for you use cases, deleting a dataset halts automatic updates for any associated solution versions or recommenders.
-
No associated
DatasetImportJob
can have a status of CREATE PENDING or IN PROGRESS. -
No associated
Recommender
orSolutionVersion
can have a status of CREATE PENDING or IN PROGRESS.
Deleting a dataset (console)
To delete a dataset with the Amazon Personalize console, navigate to the dataset details page and choose delete.
To delete a dataset
-
Open the Amazon Personalize console at https://console.amazonaws.cn/personalize/home
. -
In the navigation pane, choose Dataset groups.
-
On the Dataset groups page, choose your dataset group.
-
In the navigation pane, choose Datasets.
-
Choose the dataset to open its details page.
-
On the dataset's details page, choose Delete and confirm dataset deletion.
Deleting a dataset (Amazon CLI)
The following code shows how to delete a dataset with the Amazon CLI and the DeleteDataset operation.
aws personalize delete-dataset --dataset-arn
dataset-arn
Deleting a dataset (Amazon SDKs)
The following code shows how to delete a dataset with the Amazon SDKs and the DeleteDataset operation.