Delete a model from Cloudera AI Registry
You can delete a model from Cloudera 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 Cloudera 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()Thejsonoutput of the command includes an examplemodel_idas 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 Cloudera AI Registry.
