Hello @Tanmoy Banerjee ,
1.Did you use below command to retrieve a list of Virtual Desktops in a Collection:
Get-RDVirtualDesktop -ConnectionBroker "rdcb.contoso.com" -CollectionName @("Virtual Desktop pool")
https://learn.microsoft.com/en-us/powershell/module/rdmgmt/get-rdvirtualdesktop?view=windowsserver2019-ps
2.You may delete it manually: Open Failover Cluster Manager, then click on Roles, you should see list of VM’s, select the one you want to delete, then right on it and select Remove. Then go to Hyper-V host where VM was running from, so you can remove from list. Then it’s time to delete the VM disk, by going to the location you looked at before you deleted the VM.
How to delete old VM from Hyper-V Cluster
: https://howtohelpdesk.com/how-to-delete-old-vm-from-hyper-v-cluster/
3.It is also possible to build a PowerShell script to delete and remove both virtual machines and its virtual hard disks.
REMOVE VIRTUAL MACHINES AND VIRTUAL HARD DISKS COMPLETELY WITH POWERSHELL
: https://techgenix.com/remove-virtual-machines/
Other references:
Add-RDVirtualDesktopToCollection
: https://learn.microsoft.com/en-us/powershell/module/remotedesktop/add-rdvirtualdesktoptocollection?view=windowsserver2016-ps
How to Delete a Virtual Hard Disk From Hyper-V Cluster Shared Volume
: https://www.techsupportpk.com/2016/11/how-to-delete-virtual-hard-disk-from-hyperv-cluster-shared-volume.html
Can't add existing VM to RDS Collection (Server 2012)
: https://social.technet.microsoft.com/Forums/windowsserver/en-US/ba70044c-c904-4359-aed8-9c34fd94c0de/cant-add-existing-vm-to-rds-collection-server-2012?forum=winserverTS
Add virtual desktop to existing RDS VDI collection
: https://social.technet.microsoft.com/Forums/lync/en-US/27fd1a49-d593-4ab4-86bc-db2b409c8b6b/add-virtual-desktop-to-existing-rds-vdi-collection?forum=winserverTS
Best regards,
Leila
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.