#NEWLINE# def remove( self , bundle , name ) : #NEWLINE# #INDENT# '\n        Remove a plugin from the list and config.\n\n        Both ``bundle`` and ``name`` are required. A\n        :py:exception:`PluginError` will be raised if the plugin does not\n        exist.\n        ' #NEWLINE# section_name = 'plugin:{bundle}:{name}' . format ( bundle = bundle , name = name ) #NEWLINE# if ( not self . config . has_section ( section_name ) ) : #NEWLINE# #INDENT# raise PluginError ( 'This plugin does not exist.' ) #NEWLINE# #UNINDENT# self . config . remove_section ( section_name ) #NEWLINE# self . _plugins = self . _init_plugins ( self . config )