code: @Override
      public void clean(int numberToClean) {
          logger.info("Attempting to delete the last {} records for key {}", numberToClean, key);
          VersionedKey currentVersionedKey = loadKeyFromCouchbase();
          long start = 0;
          if (numberToClean != -1)
              start = currentVersionedKey.getVersion() - numberToClean;
          for (long i = start; i < currentVersionedKey.getVersion(); i++) {
              delete(currentVersionedKey.withVersion(i)
                                        .toJson());
          }
          logger.info("Finished deleting the last {} records for key {}", numberToClean, key);
      }
docs: Clean specified number of old (not current) versioned keys)
  
  @param numberToClean