@Override
    public void deleteGroupOffset(boolean onlyMemory,
            Map<String, Map<String, Set<Integer>>> groupTopicPartMap,
            String modifier) {
        String printBase;
        StringBuilder strBuff = new StringBuilder(512);
        for (Map.Entry<String, Map<String, Set<Integer>>> entry : groupTopicPartMap.entrySet()) {
            if (entry.getKey() == null
                    || entry.getValue() == null
                    || entry.getValue().isEmpty()) {
                continue;
            }
            rmvOffset(entry.getKey(), entry.getValue());
        }
        this.fileOffsetStorage.deleteGroupOffsetInfo(groupTopicPartMap);
        if (this.zkOffsetStorage != null) {
            if (onlyMemory) {
                printBase = strBuff
                        .append("[Offset Manager] delete offset from memory by modifier=")
                        .append(modifier).toString();
            } else {
                zkOffsetStorage.deleteGroupOffsetInfo(groupTopicPartMap);
                printBase = strBuff
                        .append("[Offset Manager] delete offset from memory and zk by modifier=")
                        .append(modifier).toString();
            }
        } else {
            printBase = strBuff
                    .append("[Offset Manager] delete offset from memory and file by modifier=")
                    .append(modifier).toString();
        }
        strBuff.delete(0, strBuff.length());
        // print log
        for (Map.Entry<String, Map<String, Set<Integer>>> entry : groupTopicPartMap.entrySet()) {
            if (entry.getKey() == null
                    || entry.getValue() == null
                    || entry.getValue().isEmpty()) {
                continue;
            }
            logger.info(strBuff.append(printBase).append(",group=").append(entry.getKey())
                    .append(",topic-partId-map=").append(entry.getValue()).toString());
            strBuff.delete(0, strBuff.length());
        }
    }
Delete offset.

@param onlyMemory          whether only memory cached value
@param groupTopicPartMap   need removed group and topic map
@param modifier            the modifier
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/broker/offset/DefaultOffsetManager.java