Q:

ElasticSearch - Delete an Index using Java HighLevel HTTP Client

Previously using ElasticSearch Transport API, I have deleted an index and its data using the below line of program.
            DeleteByQueryAction.INSTANCE.newRequestBuilder(client).source(indexName).get();

We are migrated from Transport Client API to HTTP Client API now. Unfortunately this is not supported in ES HighLevel HTTP client API as for as I know. Is there a way to delete an index using HTTP client?
Edited: 
I am using ES Rest client API version 5.6.4. Deleting an index is available in the latest 6.x versions. I am looking for deleting the index in version 5.6.4. Thanks 

A:

Then I suggest simply making a DELETE call on your index using the low-level REST API, that'd do the trick
Response response = restClient.performRequest("DELETE", "/" + indexName); 

Note that you don't need to use the Delete by query API for deleting an index. 

