delete_config <peer> <source>
        eg. delete_config sw1 startup
338620
def do_delete_config(self, line):
        

        def f(p, args):
            try:
                source = args[0]
            except:
                print("argument error")
                return
            print(p.delete_config(source))

        self._request(line, f)
1079595
def discard_config(self):
        """"""
        self.device.cu.rollback(rb_id=0)
        if not self.config_lock:
            self._unlock()
1013039
def _trim(self):
        
        index = self._get_index()
        backup_limit = config().backup_count() - 1

        for changeset in index[backup_limit:]:
            self.delete(changeset[0], p_write=False)
1291753
def _purge_config_file(self, key):
        
        state = self.__load_state()
        del state['remove_configs'][key]
        self.__dump_state(state)
1121760
def delete(stack, region, profile):
    
    ini_data = {}
    environment = {}

    environment['stack_name'] = stack
    if region:
        environment['region'] = region
    else:
        environment['region'] = find_myself()

    if profile:
        environment['profile'] = profile

    ini_data['environment'] = environment

    if start_smash(ini_data):
        sys.exit(0)
    else:
        sys.exit(1)
631831
def clear_restore_points(self, name=None):
        '''
        '''
        if name is None:
            self.config_state.clear()
        else:
            del self.config_state[name]
697109
def _cleanup(self):
        '''
        
        '''
        if (hasattr(self, 'config')
           and self.config.get('support_archive')
           and os.path.exists(self.config['support_archive'])):
            self.out.warning('Terminated earlier, cleaning up')
            try:
                os.unlink(self.config['support_archive'])
            except Exception as err:
                log.debug(err)
                self.out.error('{} while cleaning up.'.format(err))
287265
public void deleteLaunchConfiguration(String launchConfigName) {

    final AmazonAutoScaling autoScaling = getAmazonAutoScalingClient();

    final DeleteLaunchConfigurationRequest deleteLaunchConfigurationRequest = new DeleteLaunchConfigurationRequest()
        .withLaunchConfigurationName(launchConfigName);

    autoScaling.deleteLaunchConfiguration(deleteLaunchConfigurationRequest);

    LOGGER.info("Deleted Launch Configuration: " + launchConfigName);
  }
593720
def delete(self, option):
        
        if self.config is not None:
            if option in self.config:
                del self.config[option]
172292
def delete_endpoint_config(self, endpoint_config_name):
        
        LOGGER.info('Deleting endpoint configuration with name: {}'.format(endpoint_config_name))
        self.sagemaker_client.delete_endpoint_config(EndpointConfigName=endpoint_config_name)
551924
def reset(self, configuration: dict) -> None:
        
        self.clean(0)
        self.backend.store_config(configuration)
1129993
def _remove_setting(section, name, configfile, save=False):
    '''
    '''
    removed = False
    config = _load_config(configfile)
    if section in config:
        if name.lower() in config[section]:
            removed = config.remove_option(section, name)

    # Does the user want to save the file?
    if removed and save:
        write_config(configfile, config)

    return removed
1359575
def clear(self):
        """"""
        self._config = configparser.RawConfigParser()
        # Override config from command line even if we modify the config file and live reload it.
        self._override_config = {}

        self.read_config()
1005154
def delete(self):
        
        cfg_file = "/etc/nago/nago.ini"
        config = ConfigParser.ConfigParser()
        config.read(cfg_file)
        result = {}
        token = self.data.pop("token", self.token)
        if token not in config.sections():
            raise Exception("Cannot find node in config. Delete aborted.")
        config.remove_section(self.token)
        with open(cfg_file, 'w') as f:
            return config.write(f)
1102888
def remove_config_lock(name):
    '''
    

    '''
    ret = _default_ret(name)

    ret.update({
        'changes': __salt__['panos.remove_config_lock'](),
        'result': True
    })

    return ret
448997
def delete_peer(self, name, peer_type="REPLICATION"):
    
    params = self._get_peer_type_param(peer_type)
    return self._delete("peers/" + name, ApiCmPeer, params=params, api_version=3)
1086151
def delete(identifier):
    ''''''
    log.info('Deleting source "%s"', identifier)
    actions.delete_source(identifier)
    log.info('Deleted source "%s"', identifier)