You can temporarily remove a virtual machine or a VM template from vCenter Server or you can permanently delete it from the datastore.
The process is the same for a virtual machine or a VM template:
- When you remove a virtual machine from the inventory, you unregister it from the host and vCenter Server, you do not delete it from the datastore. Virtual machine files remain at the same storage location and you can later re-register the virtual machine by using the datastore browser. This helps if you want to edit the virtual machine configuration file. It is also useful to temporarily remove a virtual machine when you have reached the maximum number of virtual machines that your license or hardware allows.
- If you no longer need a virtual machine and want to free up space on the datastore, you can remove the virtual machine from vCenter Server and delete all virtual machine files from the datastore, including the configuration file and virtual disk files.
Prerequisites
Power off the virtual machine.
Procedure
- ♦ Log in to the vSphere Client and perform the task:
Option Description Temporarily remove the virtual machine or VM template - Right-click the virtual machine.
- Select Remove From Inventory and click Yes.
Permanently delete the virtual machine or VM template - Right-click the virtual machine.
- Select Delete from Disk and click Yes.