DeleteIndexRequest in 6.0.1 version

Hi I am using 6.0.1 version of elastic search. Can someone help me for deleting index using java api.

6.0.1 version doesn't have below line of code
DeleteIndexResponse deleteIndexResponse = client.indices().delete(deleteIndexRequest);

You can do something like this I think:

client.getLowLevelClient().performRequest("DELETE", "/index", Collections.emptyMap());

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.