public static void deleteFilesIgnoringExceptions(Collection<? extends Path> files){
  for (  Path name : files) {
    if (name != null) {
      try {
        Files.delete(name);
      }
 catch (      Throwable ignored) {
      }
    }
  }
}

public static void deleteFilesIgnoringExceptions ( Collection < ? extends Path > files ) { for ( Path name : files ) { if ( name != null ) { try { Files . delete ( name ) ; } catch ( Throwable ignored ) { } } } }
deletes all given files , suppressing all thrown ioexceptions . < p > some of the files may be null , if so they are ignored .
