title: Elaticsearch 5.2, Python 3 AttributeError: 'Elasticsearch' object has no attribute 'delete_by_query'
body: <p>iam using  this code to delete docs from my index: </p>
  
  <pre><code>from elasticsearch import Elasticsearch 
  es= Elasticsearch()
  
  index = 'test'
  doc_type = 'trends' 
  
  q = {
  "query": {
      "match": {
          "Device": "12 Bel"
          # find the docs those schould be deleted
      }
   },    
  }
  
  result = es.delete_by_query(body=q, doc_type=doc_type, index=index)
  print('Result is : ', result)
  </code></pre>
  
  <p>i get this Error:</p>
  
  <pre><code>AttributeError: 'Elasticsearch' object has no attribute 'delete_by_query'
  </code></pre>
  
  <p>has someone experience with this problem ? Any helps?
  Thanks</p>