Delete all documents in an Index - Using Python

How can I delete all documents in an Index using Python.

Ap

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/09e75c24-1fba-4529-b3a6-d29392beefa0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

If you're deleting it all, why not just delete the whole index and
re-create it? It will certainly be faster, and less taxing to the system.

If you need to preserve a mapping, download it first so you can re-upload
it later.

--Aaron

On Wednesday, February 18, 2015 at 1:15:25 PM UTC-7, Amay Patil wrote:

How can I delete all documents in an Index using Python.

Ap

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/20c55daa-4c60-46ad-92a1-3b398c386ee5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.