def remove_option(file_name, section, option, separator='='):
 inifile = _Ini.get_ini_file(file_name, separator=separator)
 value = inifile.get(section, {}).pop(option, None)
 inifile.flush()
 return value

def remove_option ( file_name , section , option , separator = '=' ) : inifile = _Ini . get_ini_file ( file_name , separator = separator ) value = inifile . get ( section , { } ) . pop ( option , None ) inifile . flush ( ) return value
remove a key/value pair from a section in an ini file .