Answers for "how to delete deplyment in azur eml"

0

how to delete deplyment in azur eml

from azureml.core import Workspace
ws = Workspace.get(name="your_workspace_name",
           subscription_id='your_subscription_id',
           resource_group='your_resource_group')


from azureml.core import Model
for model in Model.list(ws):
    print('name:', model.name, '\nversion:', model.version, '\n')
Model(ws, name = 'model_name', version = 'model_version').delete()


from azureml.core import Webservice
for webservice in Webservice.list(ws):
    print('name:', webservice.name)
Webservice(ws, name = 'webservice').delete()
Posted by: Guest on October-14-2020

Code answers related to "how to delete deplyment in azur eml"

Browse Popular Code Answers by Language