public static void deleteESTestIndex(String index){
  logger.info("Deleting index:");
  ProcessBuilder pDelete=new ProcessBuilder("curl","-XDELETE",index);
  try {
    executeCommand(pDelete);
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
}

public static void deleteESTestIndex ( String index ) { logger . info ( "Deleting index:" ) ; ProcessBuilder pDelete = new ProcessBuilder ( "curl" , "-XDELETE" , index ) ; try { executeCommand ( pDelete ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } }
method to delete an es index
