Destroy the domain object

libvirt_domain_define_xml
libvirt_domain_get_connect
Libvirt Functions
PHP Manual

# libvirt_domain_destroy

(php-libvirt 0.1)

libvirt_domain_destroy — Destroy the domain object

### Description

bool libvirt_domain_destroy ( resource `$domain` )

Destroy the domain object. The running instance is shutdown if not down already and all resources used by it are given back to the hypervisor. This function may require privileged access.

### Parameters

`domain`

  Domain resource of domain to be destroyed. You can get domain resource using various functions (i.e. libvirt_domain_lookup_by_uuid() or libvirt_list_domains()).

### Return Values

`TRUE` on success and `FALSE` on failure

### See Also

- libvirt_domain_create() - Launch a defined domain.
- libvirt_domain_create_xml() - Launch a new guest domain, based on an XML description

libvirt_domain_define_xml
libvirt_domain_get_connect
Libvirt Functions
PHP Manual