The Remove-Cluster
cmdlet will remove a cluster from your vSphere inventory. The Remove-Cluster
cmdlet has the following syntax:
Remove-Cluster [-Cluster] <Cluster[]> [-Server <VIServer[]>] [-RunAsync] [-WhatIf] [-Confirm] [<CommonParameters>]
The next example will remove the Cluster02
cluster that was created at the beginning of this chapter:
PowerCLI C:\> Remove-Cluster -Cluster Cluster02 -Confirm:$false