Skip to content

Instantly share code, notes, and snippets.

@tilakpatidar
Created April 5, 2017 05:28
Show Gist options
  • Save tilakpatidar/f4a6dc910e336e7282bfe69fede332f7 to your computer and use it in GitHub Desktop.
Save tilakpatidar/f4a6dc910e336e7282bfe69fede332f7 to your computer and use it in GitHub Desktop.
Elasticsearch delete by query
import elasticsearch as es
db = es.Elasticsearch(['y-monitoring-vm2.dnspam'], port= 9200)
db.delete_by_query(index= 'lake_garda_hadoop-test', doc_type='stock_accuracy', body={})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment