delete_models
Remove one or more models from the model registry.
Parameters
mb.delete_models(names=)
models
:Union[str, List[str]]
The names of the models to remove from the registry.
Returns
No value is returned. A success status message is printed if the command is successful.
Examples
Delete the example_model
model
Remove one model by specifying its name:
mb.delete_models("example_model")
Delete multiple models
Remove multiple models by sending a list of model names:
mb.delete_models(["example_model", "other_model"])
Delete all models in the finance
directory
Use mb.models
to get a list of model names, then delete them:
models_in_finance = mb.models(prefix="finance/")
mb.delete_models(models_in_finance)