title: Delete records from Elasticsearch by query
body: <p>I am trying to delete specific date records from Elasticsearch. My query is the following:</p>
  
  <pre><code>curl -XDELETE 'http://localhost:9200/twitter/twit/_query' -d '
  {
      "filter" : {
              "range" : {
                  "date_time" : { "from" : "2012-10-01 00:00:01", "to" : "2013-05-01 11:59:59"}
              }
          }
  }'
  </code></pre>
  
  <p>but it is not deleting any records. so it is correct one or are there some other methods to delete records.</p>