code: @Deprecated
  	private static void removeIndexInElasticsearch(Client client, String index) throws Exception {
  		logger.trace("removeIndex([{}])", index);
  
  		assert client != null;
  		assert index != null;
  
          AcknowledgedResponse response = client.admin().indices().prepareDelete(index).get();
  		if (!response.isAcknowledged()) {
  			logger.warn("Could not delete index [{}]", index);
  			throw new Exception("Could not delete index ["+index+"].");
  		}
  
  		logger.trace("/removeIndex([{}])", index);
  	}
docs: Remove a new index in Elasticsearch
  @param client Elasticsearch client
  @param index Index name
  @throws Exception if the elasticsearch API call is failing