public static void deleteCore(){
  log.info("###deleteCore");
  if (h != null) {
    h.close();
  }
  if (factoryProp == null) {
    System.clearProperty("solr.directoryFactory");
  }
  solrConfig=null;
  h=null;
  lrf=null;
  configString=schemaString=null;
}

public static void deleteCore ( ) { log . info ( "###deleteCore" ) ; if ( h != null ) { h . close ( ) ; } if ( factoryProp == null ) { System . clearProperty ( "solr.directoryFactory" ) ; } solrConfig = null ; h = null ; lrf = null ; configString = schemaString = null ; }
shuts down the test harness , and makes the best attempt possible to delete datadir , unless the system property " solr . test . leavedatadir " is set .
