Help Center/
ModelArts/
SDK Reference/
Data Management/
Managing Samples/
Deleting Samples in a Batch
Updated on 2022-11-24 GMT+08:00
Deleting Samples in a Batch
Delete samples from a dataset in a batch based on the sample ID list.
dataset.delete_samples(samples)
Sample Code
Delete samples from a dataset in a batch.
from modelarts.session import Session from modelarts.dataset import Dataset session = Session() dataset = Dataset(session, dataset_id) samples = [] samples.append("2551e78974aed9b60156d8376232f6bd") samples.append("0d315fec1efc7568de5cccf522c10a1b") dataset.delete_samples(samples)
Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
samples |
Yes |
List of String |
IDs of the samples to be deleted |
Parent topic: Managing Samples
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot