Removing Expired Clones

At the end of the VDI life cycle, the clone VM is deleted from the hypervisor. This can happen as a result of administrator action through the vSphere Web Client or the VMware Horizon View GUI.

Before a clone VM is deleted, you need to unregister it from KeyControl. This removes the address of the clone from KeyControl so that the same address can be used again later. Otherwise, you will have "orphan" names in KeyControl which will prevent you from reusing those addresses.

Important: Removing a clone from KeyControl without decrypting the data first means that the data on all encrypted disks will be lost. If you want to decrypt the data first, see Decrypting a Disk Using the CLI.
  1. For Linux, log into the VM as root. For Windows, log in as a System Administrator and open a Command Prompt or start Windows PowerShell.
  2. Remove the VM using the CLI or the HyTrust Python-based REST API. After the clone VM has been removed, none of its encrypted drives can be accessed. If the clone boot partition was encrypted, the clone is powered off after it is removed from KeyControl.