A while back i had to manually clean up some Horizon View Desktop pools that were stuck in the delete state. Reasons for this was failed attempts to delete Horizon View VDIs even though their corresponding vCenter Server VMs were successfully deleted. 


The tool viewdbchk that used to be a VMware fling but was included in Horizon View from version 6.2. The viewdbchk.cmd file is located in the installation Horizon View directory which is my case was:


  • C:\Program Files\VMware\VMware View\Server\tools\bin


The number of problem VDIs were around 27 but just to be on the safe side i used 50 VMs as the limit for the scan via the following command:

  • viewdbchk.cmd –-scanMachines –-limit 50


When prompted just answer “yes” to the question “Do you want to remove the desktop machine” and in this case both the VDI and the Horizon View Desktop Pool will be deleted.

 For Horizon View Desktop pools with many Problem Machines the Horizon View Desktop pool will be deleted as the last step after all Problem Machines have been deleted.