code: public boolean delete(Path f, boolean recursive) throws IOException{
      FileStatus fstatus = null;
      try {
        fstatus = fs.getFileStatus(f);
      } catch(FileNotFoundException e) {
        return false;
      }
      if(fstatus.isDir()) {
        //this works since the crcs are in the same
        //directories and the files. so we just delete
        //everything in the underlying filesystem
        return fs.delete(f, recursive);
      } else {
        Path checkFile = getChecksumFile(f);
        if (fs.exists(checkFile)) {
          fs.delete(checkFile, true);
        }
        return fs.delete(f, true);
      }
    }
docs: Implement the delete(Path, boolean) in checksum
  file system.