libvirt_domain_destroy Destroy the domain object
&reftitle.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.

&reftitle.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`).

&reftitle.returnvalues;

&true; on success and &false; on failure

&reftitle.seealso;

- `libvirt_domain_create`
- `libvirt_domain_create_xml`