You're viewing version 2.16 of the OpenSearch documentation. This version is no longer maintained. For the latest version, see the current documentation. For information about OpenSearch version maintenance, see Release Schedule and Maintenance Policy.
Delete a model
Deletes a model based on the model_id
.
When you delete the last model version in a model group, that model group is automatically deleted from the index.
For information about user access for this API, see Model access control considerations.
Path and HTTP methods
DELETE /_plugins/_ml/models/<model_id>
Example request
DELETE /_plugins/_ml/models/MzcIJX8BA7mbufL6DOwl
Example response
{
"_index" : ".plugins-ml-model",
"_id" : "MzcIJX8BA7mbufL6DOwl",
"_version" : 2,
"result" : "deleted",
"_shards" : {
"total" : 2,
"successful" : 2,
"failed" : 0
},
"_seq_no" : 27,
"_primary_term" : 18
}