#NEWLINE# def remove_option( file_name , section , option , separator = '=' ) : #NEWLINE# #INDENT# "\n    Remove a key/value pair from a section in an ini file. Returns the value of\n    the removed key, or ``None`` if nothing was removed.\n\n    API Example:\n\n    .. code-block:: python\n\n        import salt\n        sc = salt.client.get_local_client()\n        sc.cmd('target', 'ini.remove_option',\n               [path_to_ini_file, section_name, option])\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' ini.remove_option /path/to/ini section_name option_name\n    " #NEWLINE# inifile = _Ini . get_ini_file ( file_name , separator = separator ) #NEWLINE# value = inifile . get ( section , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) . pop ( inifile , None ) #NEWLINE# inifile . flush ( ) #NEWLINE# return value