private boolean removeConfigFile(File file){
  if (file.exists()) {
    for (    File file1 : file.listFiles()) {
      if (file1.isDirectory()) {
        removeConfigFile(file1);
      }
 else {
        boolean isDeleted=file1.delete();
        if (!isDeleted) {
          LOGGER.error("The file " + file1.getPath() + " cannot be deleted");
        }
      }
    }
  }
  return (file.delete());
}

private boolean removeConfigFile ( File file ) { if ( file . exists ( ) ) { for ( File file1 : file . listFiles ( ) ) { if ( file1 . isDirectory ( ) ) { removeConfigFile ( file1 ) ; } else { boolean isDeleted = file1 . delete ( ) ; if ( ! isDeleted ) { LOGGER . error ( "The file " + file1 . getPath ( ) + " cannot be deleted" ) ; } } } } return ( file . delete ( ) ) ; }
clean - up configuration files before leaving
