func (c *networkCmd) doNetworkDelete(client *lxd.Client, name string) error { err := client.NetworkDelete(name) if err == nil { fmt.Printf(i18n.G("Network %s deleted")+"\n", name) } return err }