code: private static void removeIndexInElasticsearch(RestClient client, String index) throws Exception {
  		logger.trace("removeIndex([{}])", index);
  
  		assert client != null;
  		assert index != null;
  
  		Response response = client.performRequest(new Request("DELETE", "/" + index));
  		if (response.getStatusLine().getStatusCode() != 200) {
  			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