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 [drainId] = params.args;
const { alias } = params.options;
const { app_id: appId } = await AppConfig.getAppData(alias).toPromise();
await deleteDrain({ appId, drainId }).then(sendToApi);
Logger.println('Your drain has been successfully removed');
}