func deleteGuest(c *cli.Client, id string) cli.JMap { guest, resp := c.Delete("guest", "guests/"+id) j := cli.JMap{ "id": resp.Header.Get("x-guest-job-id"), "guest": guest, } return j }
func deleteSubnet(c *cli.Client, hv, subnet string) cli.JMap { sub, _ := c.Delete("subnet", "hypervisors/"+hv+"/subnets/"+subnet) return sub }
func deleteHV(c *cli.Client, id string) cli.JMap { hv, _ := c.Delete("hypervisor", "hypervisors/"+id) return hv }