Omnissa Horizon remove orphaned templates and replicas

horizon-remove-orphaned-templates-and-replicas-01

During a Desktop Pool deletion operation, some objects may not be properly removed leaving orphaned templates and replicas in VMware vSphere.

Although all Desktop Pools were deleted from the Omnissa Horizon console, issues may arise where not all corresponding objects are successfully removed in VMware vSphere, resulting in orphaned VMs.

horizon-remove-orphaned-templates-and-replicas-02

Upon reviewing the vSphere Inventory, certain templates and replicas remain listed, even after executing the deletion command from Omnissa Horizon.

horizon-remove-orphaned-templates-and-replicas-03

Looking at the Template view, Horizon templates and replicas can be easily identified.

horizon-remove-orphaned-templates-and-replicas-04

If you try removing these machines directly from the vCenter, the Delete from Disk option is greyed out since the VMs are protected.

horizon-remove-orphaned-templates-and-replicas-05

 

How to remove orphaned templates and replicas

To remove orphaned templates and replicas, Horizon provides the iccleanup.cmd tool that can be run from the command line.

From the Horizon Connection Server, open the Command Prompt and navigate to the folder C:\Program Files\VMware\VMware View\Server\tools\bin.

C:\> cd \Program Files\VMware\VMware View\Server\tools\bin

horizon-remove-orphaned-templates-and-replicas-06

Run the following command to connect to the vCenter Server:

iccleanup.cmd -vc <vCenter> -uid administrator@vsphere.local -skipCertVeri

C:\...\bin> iccleanup.cmd -vc prod-vcsa.nolabnoparty.lab -uid administrator@vsphere.lab -skipCertVeri

horizon-remove-orphaned-templates-and-replicas-07

Enter list to display all the objects. In this example, the number 1 identifies the objects to delete.

> Please input the command ( ... ): list

horizon-remove-orphaned-templates-and-replicas-08

To remove these objects from the vCenter Server, enter the command:

delete --index <number>

> list> Please input the command ( ... ): delete --index 1

horizon-remove-orphaned-templates-and-replicas-09

Once the delete command has been executed, verify through vCenter Server that all orphaned templates and replicas have been successfully removed.

horizon-remove-orphaned-templates-and-replicas-10

You can also confirm the actual deletion in the Inventory.

horizon-remove-orphaned-templates-and-replicas-11

By following this simple procedure, you can keep your Omnissa Horizon environment clean and fully operational.

signature

3 Comments

  1. Umar 10/02/2025
    • Kiah May 07/10/2025
  2. Kiah May 07/10/2025

Leave a Reply