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