func (d *VirDomain) Undefine() error { result := C.virDomainUndefine(d.ptr) if result == -1 { return GetLastError() } return nil }
func (d *VirDomain) Delete() error { result := C.virDomainUndefine(d.ptr) if result < 0 { return errors.New(GetLastError()) } return nil }