public static void deleteFileIfExistsWithRetry(Path path) throws IOException {
  try {
    if (Files.exists(path))     deleteFileWithRetry0(path);
  }
 catch (  InterruptedException x) {
    throw new IOException("Interrupted while deleting.",x);
  }
}

public static void deleteFileIfExistsWithRetry ( Path path ) throws IOException { try { if ( Files . exists ( path ) ) deleteFileWithRetry0 ( path ) ; } catch ( InterruptedException x ) { throw new IOException ( "Interrupted while deleting." , x ) ; } }
deletes a file , retrying if necessary . no exception thrown if file doesn ' t exist .
