Elastic Search delete by query

Sep 10, 2018

Send a POST request to the _delete_by_query endpoint of target index and doctype, make sure the request body has query for matching and deleting the target objects.

POST my_index/my_doc_type/_delete_by_query

{
  "query": {
    "range": {
      "value": {
        "gte": 153
        "lte": 200
      }
    }
  }
}