@Override
    public int delete(final List<String> ids) {
        final List<RoleDO> roles = roleMapper.selectByIds(ids);
        final int deleteCount = roleMapper.delete(ids);
        if (deleteCount > 0) {
            roleEventPublisher.onDeleted(roles);
        }
        return deleteCount;
    }
delete role info.

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