Delete an agent

Introduced 2.12

This is an experimental feature and is not recommended for use in a production environment. For updates on the progress of the feature or if you want to leave feedback, see the associated GitHub issue.

You can use this API to delete an agent based on the agent_id.

Path and HTTP methods

  1. DELETE /_plugins/_ml/agents/<agent_id>

Example request

  1. DELETE /_plugins/_ml/agents/MzcIJX8BA7mbufL6DOwl

copy

Example response

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