CmdID / PowerShell / Cmdlets / Remove
Remove-RDPersonalSessionDesktopAssignment
Removes the association between a personal session desktop assignment 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 session 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.-NameSpecifies the name of the personal session desktop assignment to remove.-UserSpecifies a user account in DOMAIN\user format.-WhatIf, -wiShows what would happen if the cmdlet runs.