Unload Model

opensearch_py_ml.ml_commons.MLCommonClient.unload_model(self, model_id: str, node_ids: List[str] = []) object

This method undeploys a model from all the nodes or from the given list of nodes (using ml commons _undeploy api)

Parameters:
  • model_id (string) – unique id of the nlp model

  • node_ids (list of string) – List of nodes

Returns:

returns a json object with defining from which nodes the model was undeployed.

Return type:

object

Deprecated since version 2.7.0: Since OpenSearch 2.7.0, you can use undeploy_model instead