Updated on 2025-08-20 GMT+08:00
Deleting a Dataset
Delete a dataset based on the dataset ID.
delete_dataset(session, dataset_id)
Sample Code
Delete a dataset.
from modelarts.session import Session from modelarts.dataset import Dataset session = Session() Dataset.delete_dataset(session, dataset_id="68ZXdK6CZwgvUICOOdC")
Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| session | Yes | Object | Session object. For details about the initialization method, see Session Authentication. |
| dataset_id | Yes | String | Dataset ID |
Parent topic: Managing Datasets
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.