How do you delete the task document once the task has completed?

This question is also asked here No delete task by id API in ES cluster? Intentionally? Not documented?, but no answer is provided.

Okay I figured it out.
Node Id + Task Id: ZKUuxQZpRCCcJ0njBM1P0A:442
Method: Delete
URI: http://localhost:9200/.tasks/task/ZKUuxQZpRCCcJ0njBM1P0A:442

Follow this format if you want to delete the document where your task is recorded.

The response looks like this
{
"_index": ".tasks",
"_type": "task",
"_id": "ZKUuxQZpRCCcJ0njBM1P0A:442",
"_version": 2,
"result": "deleted",
"_shards": {
"total": 1,
"successful": 1,
"failed": 0
},
"_seq_no": 13,
"_primary_term": 5
}

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