def unregister_plugin(plugin_id): existing_plugin = Plugin.load(plugin_id, 'remove') existing_plugin.clear_data() existing_plugin.delete_instance()
def reset_plugin(plugin_id): existing_plugin = Plugin.load(plugin_id, 'reset') existing_plugin.reset()