def unload(*plugins):
 observers = PluginImplementations(interfaces.IPluginObserver)
 for plugin in plugins:
  if (plugin in _PLUGINS):
   _PLUGINS.remove(plugin)
   if (plugin in _PLUGINS_SERVICE):
    del _PLUGINS_SERVICE[plugin]
  else:
   raise Exception(('Cannot unload plugin `%s`' % plugin))
  service = _get_service(plugin)
  for observer_plugin in observers:
   observer_plugin.before_unload(service)
  service.deactivate()
  _PLUGINS_CLASS.remove(service.__class__)
  for observer_plugin in observers:
   observer_plugin.after_unload(service)
 plugins_update()

def unload ( * plugins ) : observers = PluginImplementations ( interfaces . IPluginObserver ) for plugin in plugins : if ( plugin in _PLUGINS ) : _PLUGINS . remove ( plugin ) if ( plugin in _PLUGINS_SERVICE ) : del _PLUGINS_SERVICE [ plugin ] else : raise Exception ( ( 'Cannot unload plugin `%s`' % plugin ) ) service = _get_service ( plugin ) for observer_plugin in observers : observer_plugin . before_unload ( service ) service . deactivate ( ) _PLUGINS_CLASS . remove ( service . __class__ ) for observer_plugin in observers : observer_plugin . after_unload ( service ) plugins_update ( )
unload specified fault manager module module: string module to unload cli example: .