Updated on 2024-06-12 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

Table 1 Request 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