code: def _delete_advanced_config(config_spec, advanced_config, vm_extra_config):
      '''
      Removes configuration parameters for the vm
  
      config_spec
          vm.ConfigSpec object
  
      advanced_config
          List of advanced config keys to be deleted
  
      vm_extra_config
          Virtual machine vm_ref.config.extraConfig object
      '''
      log.trace('Removing advanced configuration '
                'parameters %s', advanced_config)
      if isinstance(advanced_config, str):
          raise salt.exceptions.ArgumentValueError(
              'The specified \'advanced_configs\' configuration '
              'option cannot be parsed, please check the parameters')
      removed_configs = []
      for key in advanced_config:
          for option in vm_extra_config:
              if option.key == key:
                  option = vim.option.OptionValue(key=key, value='')
                  config_spec.extraConfig.append(option)
                  removed_configs.append(key)
      return removed_configf _delete_advanced_config(config_spec, advanced_config, vm_extra_config):
      '''
      Removes configuration parameters for the vm
  
      config_spec
          vm.ConfigSpec object
  
      advanced_config
          List of advanced config keys to be deleted
  
      vm_extra_config
          Virtual machine vm_ref.config.extraConfig object
      '''
      log.trace('Removing advanced configuration '
                'parameters %s', advanced_config)
      if isinstance(advanced_config, str):
          raise salt.exceptions.ArgumentValueError(
              'The specified \'advanced_configs\' configuration '
              'option cannot be parsed, please check the parameters')
      removed_configs = []
      for key in advanced_config:
          for option in vm_extra_config:
              if option.key == key:
                  option = vim.option.OptionValue(key=key, value='')
                  config_spec.extraConfig.append(option)
                  removed_configs.append(key)
      return removed_configs
docs: Removes configuration parameters for the vm
  
      config_spec
          vm.ConfigSpec object
  
      advanced_config
          List of advanced config keys to be deleted
  
      vm_extra_config
          Virtual machine vm_ref.config.extraConfig object