PluginWrapper pluginWrapper = getPlugin(id);
if (pluginWrapper == null) {
throw new UnloggedFailure(String.format("Plugin %s is not installed!", id));
}
if (gitblit.uninstallPlugin(pluginWrapper.getPluginId())) {
stdout.println(String.format("Uninstalled %s", pluginWrapper.getPluginId()));
} else {
throw new UnloggedFailure(1, String.format("Failed to uninstall %s", pluginWrapper.getPluginId()));
}
}