@Override
    @Transactional(rollbackFor = Exception.class)
    public int deleteByIdsAndNamespaceId(final List<String> ids, final String namespaceId) {
        List<RuleDO> rules = ruleMapper.selectByIds(ids);
        final int deleteCount = ruleMapper.deleteByIds(ids);
        if (deleteCount > 0) {
            ruleEventPublisher.onDeleted(rules);
            ruleConditionMapper.deleteByRuleIds(ids);
        }
        return deleteCount;
    }
delete rules by ids and namespaceId.

@param ids primary key.
@return rows
shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/RuleServiceImpl.java