2.8. Deleting Virtual Machines and Containers

You can delete a virtual machine or container that is not needed anymore using the prlctl delete command. Note that you cannot delete a running or mounted virtual machine or container. The example below illustrates deleting the running container MyCT:

# prlctl delete MyCT
Removing the CT...
Failed to remove the CT: Unable to complete the operation. This operation cannot \
be completed because the virtual machine "{4f27f27f-c056-4a65-abf6-27642b6edd21}"\
is in the "running" state.
# prlctl stop MyCT
Stopping the CT...
The CT has been successfully stopped.
# prlctl delete MyCT
Removing the CT...
The CT has been successfully removed.