code: public void truncateAllWithPrefix(@Nonnull String prefix) {
      for (String queueName : queues.keySet()) {
        if (queueName.startsWith(prefix)) {
          truncate(queueName);
        }
      }
    }
docs: Clear all streams or queues with a given prefix.
  @param prefix the prefix to match.