Previous page

Next page

Locate page in Contents

Print this page

Deleting a Virtual Machine

You can delete a virtual machine that is not needed anymore using the pctl delete command. Notice that you cannot delete a running or mounted virtual machine. For example, you can run these commands to delete the MyVM virtual machine:

# pctl delete MyVM

Deleting the VM...

VM is currently running

# pctl stop MyVM

Stopping the VM...

VM was stopped

# pctl delete MyVM

Deleting the VM...

VM was deleted