func Uninstall(b backend.Backend, targets []string) error { // if target is platform, uninstall all services if len(targets) == 1 && targets[0] == PlatformInstallCommand { return uninstallAllServices(b) } // uninstall the specific target return b.Destroy(targets) }