code: public void release() throws IOException {
      if(!fs.delete(lockFile, false)) {
        LOG.error("Thread {} could not delete dir lock {} ", threadInfo(), lockFile);
      }
      else {
        LOG.debug("Thread {} Released dir lock {} ", threadInfo(), lockFile);
      }
    }
docs: Release lock on dir by deleting the lock file