Delete a model from AI Registry
You can delete a model from AI Registry through the UI or using an API call.
Deleting through the UI
- In AI Registry, find the model to delete.
- In Actions, select Delete.
- Click OK to confirm deleting the model.
The model is deleted from the AI Registry.
Deleting a model with an API call
You can run API calls in the session workbench to delete a model.
- Use the first two commands to obtain the
model_id
:api_client=cmlapi.default_client() api_client.list_registered_models()
Thejson
output of the command includes an examplemodel_id
as shown here:'model_id': '7xwf-e6pl-tb28-iylh',
- Insert the
model_id
(replace the example shown below with your own value) to the following command and run it.api_client.delete_registered_model(model_id='7xwf-e6pl-tb28-iylh')
The model is deleted from the AI Registry.