public boolean dropSingleIndex ( String indexName ) throws ElasticsearchException { DeleteIndexRequest deleteIndexRequest = new DeleteIndexRequest ( indexName ) ; DeleteIndexResponse res = this . client . admin ( ) . indices ( ) . delete ( deleteIndexRequest ) . actionGet ( ) ; return indexExists ( indexName ) ; }
Drop an ES Index