message: [cli] Fix `vc env rm` with advanced env variables
diff: import chalk from 'chalk';
  import inquirer from 'inquirer';
  -import { ProjectEnvTarget, Project } from '../../types';
  +import { ProjectEnvTarget, Project, ProjectEnvVariableV5 } from '../../types';
  import { Output } from '../../util/output';
  import confirm from '../../util/input/confirm';
  import removeEnvRecord from '../../util/env/remove-env-record';
  @@ -69,7 +69,20 @@ export default async function rm(
  envName = inputName;
  }
  - const { envs } = await getEnvVariables(output, client, project.id);
  + const data = await getEnvVariables(output, client, project.id);
  +
  + // we expand env vars with multiple targets
  + const envs: ProjectEnvVariableV5[] = [];
  + for (let env of data.envs) {
  + if (Array.isArray(env.target)) {
  + for (let target of env.target) {
  + envs.push({ ...env, target });
  + }
  + } else {
  + envs.push({ ...env, target: env.target });
  + }
  + }
  +
  const existing = new Set(
  envs.filter(r => r.key === envName).map(r => r.target)
  );
  