code: public boolean removeAll() {
          lock.lock();
          boolean result = false;
  
          try {
              result = !uriIndex.isEmpty();
              uriIndex.clear();
          } finally {
              lock.unlock();
          }
  
          return result;
      }
docs: Remove all cookies in this cookie store.