No delete task by id API in ES cluster? Intentionally? Not documented?


(Yandooo) #1

Documentation doesn't say anything about how to delete task by id https://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html


(Mark Walkom) #2

You need to cancel it - https://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html#task-cancellation


(Yandooo) #3

so is it possible to cancel (delete) finished task?


(Mark Walkom) #4

No it is not.


How do you delete the task document once the task has completed?
(Trik 1) #5

Hope I'm not missing something obvious here but how do you delete the task document once the task has completed as per the documentation for the delete by query api ?

The cost of this feature is the document that wait_for_completion=false creates at .tasks/task/${taskId}. It is up to you to delete that document.

https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html


(system) #6

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.