Updated on 2022-11-24 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
  
 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