func AppUnassign(configStore *config.Store, app, env, pool string) error { // Don't allow deleting runtime hosts entries if app == "hosts" || app == "pools" { return fmt.Errorf("invalid app name: %s", app) } deleted, err := configStore.UnassignApp(app, env, pool) if err != nil { return err } if deleted { log.Printf("Unassigned %s in env %s from pool %s\n", app, env, pool) } else { log.Printf("%s could not be unassigned.\n", pool) } return nil }