@Override
    @Transactional(rollbackFor = Exception.class)
    public int deleteByNamespaceId(final List<String> ids, final String namespaceId) {
        final List<SelectorDO> selectors = selectorMapper.selectByIdSet(new TreeSet<>(ids));
        List<PluginDO> pluginDOS = pluginMapper.selectByIds(ListUtil.map(selectors, SelectorDO::getPluginId));
        unbindDiscovery(selectors, pluginDOS);
        return deleteSelector(selectors, pluginDOS);
    }
delete selectors by ids and namespaceId.

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