title: How to delete document matching a query using official elasticsearch nodejs client?
body: <p>I want to perform a <code>delete-by-query</code>, specifically delete all documents that have a field Kname that contains <code>Gary</code>. I am using the latest version of elasticsearch (2.3) I am using the official ES client:</p>
  
  <pre><code>elasticsearch-js
  </code></pre>
  
  <p>How can I perform such a deletion? Is it not supported? If not, appreciate any code/alternatives.</p>