code: public void reset() {
          for (long i = 0; i < idCounter; i++) {
              localStorage.removeItem(key(i));
          }
          idCounter = 0;
          localStorage.removeItem(documentsKey());
          localStorage.removeItem(indexKey());
  
          resetInternal();
          Log.info("Reset index to " + indexKey());
      }
docs: Resets the index