Documentation doesn't say anything about how to delete task by id https://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html
You need to cancel it - https://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html#task-cancellation
so is it possible to cancel (delete) finished task?
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.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.