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

  1. DELETE /_plugins/_ml/models/<model_id>

Example request

  1. DELETE /_plugins/_ml/models/MzcIJX8BA7mbufL6DOwl

copy

Example response

  1. {
  2. "_index" : ".plugins-ml-model",
  3. "_id" : "MzcIJX8BA7mbufL6DOwl",
  4. "_version" : 2,
  5. "result" : "deleted",
  6. "_shards" : {
  7. "total" : 2,
  8. "successful" : 2,
  9. "failed" : 0
  10. },
  11. "_seq_no" : 27,
  12. "_primary_term" : 18
  13. }