I'm approaching ElastichSearch with a Java client. I'm trying to delete an entire index. I'm able to delete a single document with the following code:
DeleteResponse response = client.prepareDelete("twitter", "tweet", "1").get();
I would like to delete all documents for a given index in a single instruction. Note that I'm using the version 2.2.
Thanks
EDIT: I've found a similar question but it refers to an old API version. I'm currently working with version 2.2.