azure ml deploy model automl python code example
Example: 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()