PowerCLI Reference



This cmdlet removes Virtual SAN disk groups.


Remove-VsanDiskGroup [-VsanDiskGroup] <VsanDiskGroup[]> [-DataMigrationMode <VsanDataMigrationMode>] [-RunAsync] [-WhatIf] [-Confirm] [<CommonParameters>]

Related Commands

Online version

Detailed Description

This cmdlet removes Virtual SAN disk groups.


NameTypeDescriptionRequired?Pipeline InputDefault Value
VsanDiskGroupVsanDiskGroup[]Specifies the Virtual SAN disk groups you want to remove.truetrue (ByValue)
ConfirmSwitchParameterIf the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation.falsefalse
DataMigrationModeVsanDataMigrationModeSpecifies the action pertaining to Virtual SAN data when the disk group is removed. If not specified, the default value is Full.falsefalse
RunAsyncSwitchParameterIndicates that the command returns immediately without waiting for the task to complete. In this mode, the output of the cmdlet is a Task object. For more information about the RunAsync parameter run "help About_RunAsync" in the VMware PowerCLI console.falsefalse
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falsefalse

Return Type



Works only with vCenter Server 5.5 or later.


-------------- Example 1 --------------

Remove-VsanDiskGroup -VsanDiskGroup $vsanDiskGroup -Confirm:$false

Removes the $vsanDiskGroup Virtual SAN disk group without asking for confirmation.

Copyright © VMware, Inc. All rights reserved.