Undefining a virtual server

Delete the persistent libvirt definition of a virtual server.

Before you begin

  • Ensure that the virtual server is in state shut off.

    To view information about the current state of a virtual server, use the virsh domstate command.

Procedure

Delete the definition of a virtual server from libvirt by using the virsh undefine command (see undefine):
# virsh undefine <VS>
<VS>
Is the name of the virtual server as specified in its domain configuration-XML file.