code: public static final void deleteQuietly(File file)
     {
        if (file != null)
        {
           if (file.isDirectory())
           {
              File[] children = file.listFiles();
              if (children != null)
              {
                 for (File child : children)
                 {
                    deleteQuietly(child);
                 }
              }
           }
           file.delete();
        }
     }
docs: Delete a file ignoring failures.
  
  @param file file to delete