public void onDeleted(final List<RuleDO> rules, final BatchSelectorDeletedEvent event) {
        publish(new BatchRuleDeletedEvent(rules, SessionUtil.visitorName(), null));
        final List<RuleConditionDO> condition = ruleConditionMapper.selectByRuleIdSet(rules.stream().map(BaseDO::getId).collect(Collectors.toSet()));
        final Map<String, List<RuleConditionDO>> conditionsRuleGroup = groupBy(condition, RuleConditionDO::getRuleId);
        final List<RuleData> ruleData = map(rules, r -> RuleDO.transFrom(r,
                Optional.ofNullable(event.findPluginBySelectorId(r.getSelectorId())).map(PluginDO::getName).orElse(null),
                map(conditionsRuleGroup.get(r.getId()), ConditionTransfer.INSTANCE::mapToRuleDO)));
        publisher.publishEvent(new DataChangedEvent(ConfigGroupEnum.RULE, DataEventTypeEnum.DELETE, ruleData));
    }
rule delete.

@param rules data
@param event BatchSelectorDeletedEvent
shenyu-admin/src/main/java/org/apache/shenyu/admin/service/publish/RuleEventPublisher.java