CmdID / PowerShell / Cmdlets / Remove
Remove-RDVirtualDesktopFromCollection
Removes virtual desktops from a virtual desktop collection. Windows Server PowerShell reference
From the Windows Server PowerShell reference 6 parameters Its page in the reference
Parameters
-CollectionNameSpecifies the name of a virtual desktop collection.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-ConnectionBrokerSpecifies the Remote Desktop Connection Broker (RD Connection Broker) server for a remote desktop deployment.-ForceForces the command to run without asking for user confirmation.-VirtualDesktopNameSpecifies an array of names of virtual desktops.-WhatIf, -wiShows what would happen if the cmdlet runs.