• Delete the whole index:
    curl -XDELETE 'http://localhost:9200/yourindex
  • delete based on lucene query:
    curl -XDELETE "http://localhost:9200/yourindex/_query?q=(column1:contition1)AND(column2:condition2)
  • delete based on json query (mainly for delete by range):
    curl -XDELETE "http://localhost:9200/yourindex/_query" -d'
    {
       "query": { 
         "bool": { 
            "must": [
              { "term": { "column1": "condition1" } },
              { "term": { "column2": "condition2" } },
              { "range": { "columnforragne": { "lte" : "conditionforrange" } } }
            ]
          }
        }
    }'
  • for range > and <:
    { "range": { "columnforragne": { "gte": "condition1", "lte" : "condition2" } } }
  • for range >= and <=:
    { "range": { "columnforragne": { "from": "condition1", "to" : "condition2" } } }