📜  如何在 azur eml 中删除部署 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:37.735000             🧑  作者: Mango

代码示例1
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()