function remove(name) {
  if (typeof name !== 'string') {
    return;
  }

  const content = getAll();
  delete content[name];
  write(content);
}
Delete the config with the given name from the global config.
@param  {String} name The generator which will be deleted