Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function rm (params) {
const [envName] = params.args;
const { alias } = params.options;
const { org_id, app_id: appId } = await AppConfig.getAppData(alias).toPromise();
await application.removeEnvVar({ id: org_id, appId, envName }).then(sendToApi);
Logger.println('Your environment variable has been successfully removed');
};