CmdID / PowerShell / Cmdlets / Remove
Remove-RDSessionHost
Removes one or more RD Session Host servers from a session collection. Windows Server PowerShell reference
From the Windows Server PowerShell reference 5 parameters Its page in the reference
Parameters
-Confirm, -cfPrompts you for confirmation before running the cmdlet.-ConnectionBrokerSpecifies the Remote Desktop Connection Broker (RD Connection Broker) server for this Remote Desktop deployment.-ForceForces the command to run without asking for user confirmation.-SessionHostSpecifies an array that contains the name(s) of one or more servers that run the RD Session Host role and that you remove from the session collection.-WhatIf, -wiShows what would happen if the cmdlet runs.