def delete_config(lines):
 if (not isinstance(lines, list)):
  lines = [lines]
 try:
  sendline('config terminal')
  for line in lines:
   sendline(' '.join(['no', line]))
  sendline('end')
  sendline('copy running-config startup-config')
 except TerminalException as e:
  log.error(e)
  return False
 return True

def delete_config ( lines ) : if ( not isinstance ( lines , list ) ) : lines = [ lines ] try : sendline ( 'config terminal' ) for line in lines : sendline ( ' ' . join ( [ 'no' , line ] ) ) sendline ( 'end' ) sendline ( 'copy running-config startup-config' ) except TerminalException as e : log . error ( e ) return False return True
delete one or more config lines to the switch running config .