@Override
  public boolean delete(Path f, boolean recursive) throws IOException {
    boolean val = fs.delete(f, recursive);
    if (cacheFs != null) {
      Path localPath = mapCachePath(f);
      lookasideCache.removeCache(f);
      try {
        cacheFs.delete(localPath, recursive);
      } catch (FileNotFoundException nfe) {
        // do nothing
      } catch (Exception e) {
        LOG.info("LookasideCacheFileSystem unable to find entry in " +
                 " local cache to delete " + localPath +
                 ". Ignoring...");
      }
    }
    return val;
  }
@ Override public boolean delete ( Path f , boolean recursive ) throws IOException { boolean val = fs . delete ( f , recursive ) ; if ( cacheFs != null ) { Path localPath = mapCachePath ( f ) ; lookasideCache . removeCache ( f ) ; try { cacheFs . delete ( localPath , recursive ) ; } catch ( FileNotFoundException nfe ) { } catch ( Exception e ) { LOG . info ( "LookasideCacheFileSystem unable to find entry in " + " local cache to delete " + localPath + ". Ignoring..." ) ; } } return val ; }
Delete a file.