public StringBuilder adminDeleteConsumerGroupInfo(HttpServletRequest req,
            StringBuilder sBuffer,
            ProcessResult result) {
        // check and get operation info
        if (!WebParameterUtils.getAUDBaseInfo(req, false, null, sBuffer, result)) {
            WebParameterUtils.buildFailResult(sBuffer, result.getErrMsg());
            return sBuffer;
        }
        BaseEntity opEntity = (BaseEntity) result.getRetData();
        // check and get topicName field
        if (!WebParameterUtils.getStringParamValue(req,
                WebFieldDef.COMPSTOPICNAME, true, null, sBuffer, result)) {
            WebParameterUtils.buildFailResult(sBuffer, result.getErrMsg());
            return sBuffer;
        }
        Set<String> topicNameSet = (Set<String>) result.getRetData();
        // get group list
        if (!WebParameterUtils.getStringParamValue(req,
                WebFieldDef.COMPSGROUPNAME, false, null, sBuffer, result)) {
            WebParameterUtils.buildFailResult(sBuffer, result.getErrMsg());
            return sBuffer;
        }
        Set<String> groupNameSet = (Set<String>) result.getRetData();
        List<GroupProcessResult> retInfoList = new ArrayList<>();
        if (groupNameSet.isEmpty()) {
            Map<String, List<GroupConsumeCtrlEntity>> topicConsumeCtrlMap =
                    defMetaDataService.getConsumeCtrlByGroupName(topicNameSet);
            for (Map.Entry<String, List<GroupConsumeCtrlEntity>> entry : topicConsumeCtrlMap.entrySet()) {
                if (!entry.getValue().isEmpty()) {
                    for (GroupConsumeCtrlEntity ctrlEntity : entry.getValue()) {
                        if (ctrlEntity != null
                                && ctrlEntity.getConsumeEnable() != EnableStatus.STATUS_DISABLE) {
                            defMetaDataService.insertConsumeCtrlInfo(opEntity,
                                    ctrlEntity.getGroupName(), ctrlEntity.getTopicName(),
                                    EnableStatus.STATUS_DISABLE, "Old API delete, disable consume",
                                    null, null, sBuffer, result);
                        }
                    }
                }
                result.setFullInfo(true, DataOpErrCode.DERR_SUCCESS.getCode(), "Ok");
                retInfoList.add(new GroupProcessResult("", entry.getKey(), result));
            }
        } else {
            GroupConsumeCtrlEntity ctrlEntity;
            for (String groupName : groupNameSet) {
                for (String topicName : topicNameSet) {
                    ctrlEntity = defMetaDataService.getConsumeCtrlByGroupAndTopic(
                            groupName, topicName);
                    if (ctrlEntity != null
                            && ctrlEntity.getConsumeEnable() != EnableStatus.STATUS_DISABLE) {
                        retInfoList.add(defMetaDataService.insertConsumeCtrlInfo(opEntity,
                                groupName, topicName, EnableStatus.STATUS_DISABLE,
                                "Old API delete, disable consume",
                                null, null, sBuffer, result));
                    } else {
                        result.setFullInfo(true, DataOpErrCode.DERR_SUCCESS.getCode(), "Ok");
                        retInfoList.add(new GroupProcessResult(groupName, topicName, result));
                    }
                }
            }
        }
        return buildRetInfo(retInfoList, sBuffer);
    }
Delete allowed(authorized) consumer group info

@param req       Http Servlet Request
@param sBuffer   string buffer
@param result    process result
@return    process result
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/master/web/handler/WebAdminGroupCtrlHandler.java