tasks/rm.js
function rm(names) {
  console.log();
  for (const name of names) {
    const bplate = path.join(os.homedir(), '.snap', name);
    if (fs.pathExistsSync(bplate)) {
      fs.removeSync(bplate);
      console.log(`${chalk.green('Success:')} ${chalk.redBright(name)} has been deleted!`);
    } else {
      console.error(`${chalk.red('Error:')} ${chalk.yellow(name)} does not exist.`);
    }
  }
  console.log();
}
function rm(names) {
  console.log();
  for (const name of names) {
    const bplate = path.join(os.homedir(), '.snap', name);
    if (fs.pathExistsSync(bplate)) {
      fs.removeSync(bplate);
      console.log(`${chalk.green('Success:')} ${chalk.redBright(name)} has been deleted!`);
    } else {
      console.error(`${chalk.red('Error:')} ${chalk.yellow(name)} does not exist.`);
    }
  }
  console.log();
}
snap rm <names...> delete one or more boilerplates