public void clearIndex ( Index index ) { BulkIndexer . delete ( esClient , IndexType . main ( index , index . getName ( ) ) , esClient . prepareSearch ( index ) . setQuery ( matchAllQuery ( ) ) ) ; }
Completely remove a index with all types