Delete a controller

Introduced 2.12

Use this API to delete a controller for a model based on the model_id.

Path and HTTP methods

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

Path parameters

The following table lists the available path parameters.

ParameterData typeDescription
model_idStringThe model ID of the model for which to delete the controller.

Example request

  1. DELETE /_plugins/_ml/controllers/MzcIJX8BA7mbufL6DOwl

copy

Example response

  1. {
  2. "_index" : ".plugins-ml-controller",
  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. }

Required permissions

If you use the Security plugin, make sure you have the appropriate permissions: cluster:admin/opensearch/ml/controllers/delete.