CmdID / PowerShell / Cmdlets / Remove
Remove-RDPersonalVirtualDesktopAssignment
Removes the association between a personal virtual desktop and a user. Windows Server PowerShell reference
From the Windows Server PowerShell reference 7 parameters Its page in the reference
Parameters
-CollectionNameSpecifies the name of a personal 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.-UserSpecifies the user account to remove, in DOMAIN\User format.-VirtualDesktopNameSpecifies the name of the virtual desktop.-WhatIf, -wiShows what would happen if the cmdlet runs.