Book Image

Learning PowerCLI for VMware VSphere

By : Robert van den Nieuwendijk
Book Image

Learning PowerCLI for VMware VSphere

By: Robert van den Nieuwendijk

Overview of this book

Table of Contents (17 chapters)
Learning PowerCLI
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Removing clusters


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

Tip

Be careful. Removing a cluster will also remove all of the hosts and virtual machines in the cluster!