...
If the virtual appliance or VM is deployed, you do not need to undeploy it. You can directly delete a VM that is deployed, even if it is powered on.
...
To delete the VM from the backend but keep the VM configuration, you can undeploy the VM. To undeploy a VM, on the VM control panel, click Undeploy VM. You can also undeploy all of the VMs in a virtual appliance at the same time.
When you undeploy a VM, the platform destroys the VM in the backend but it does not delete the placeholder VM.
...