Libvirt Functions
PHP Manual

libvirt_domain_destroy

(php-libvirt 0.1)

libvirt_domain_destroyDestroy 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 Functions
PHP Manual