def del_from_section(kwargs):
 section = kwargs.get('section', '')
 if (section in ('servers', 'rss', 'categories')):
  keyword = kwargs.get('keyword')
  if keyword:
   item = config.get_config(section, keyword)
   if item:
    item.delete()
    del item
    config.save_config()
    if (section == 'servers'):
     Downloader.do.update_server(keyword, None)
  return True
 else:
  return False

def del_from_section ( kwargs ) : section = kwargs . get ( 'section' , '' ) if ( section in ( 'servers' , 'rss' , 'categories' ) ) : keyword = kwargs . get ( 'keyword' ) if keyword : item = config . get_config ( section , keyword ) if item : item . delete ( ) del item config . save_config ( ) if ( section == 'servers' ) : Downloader . do . update_server ( keyword , None ) return True else : return False
remove keyword in section .