The Remove-Pool
command is used to remove desktop pools from the pod.
The only option required for this command is the desktop pool ID using the -Pool_ID
switch, which can be obtained using the Get-Pool
command described in the previous recipe.
The command also supports the following options:
The
-DeleteFromDisk
switch: The default value is$false
, which removes the pool but does not delete the desktops. Use-DeleteFromDisk $true
to delete the desktops as well as the desktop pool.The
-TerminateSession
switch: The default value is$false
, which means that desktops in use as well as the desktop pool itself will not be deleted until the Horizon View client logs off. Use-TerminateSession $true
to terminate any existing View client sessions, and proceed with the pool creation.