Search code examples
pythonazureazure-machine-learning-serviceazureml-python-sdk

Is there a way to un-register an environment in Azure ML studio


I am trying to deploy a model in Azure ML and kept on getting the error 'model not found' from my score.py. So I decided to start from scratch again. I had my custom environment registered, and the Azure ML API for Environment class doesn't seem to have anything like 'delete' or 'unregister'. is there a way to work around this? Thanks


Solution

  • You can use the delete method in the Model class to delete a registered model.

    This can also be done via the Azure CLI as:

    az ml model delete <model id>
    

    Other commands can be found here: az ml model