Remove-VsanDiskGroup Command | Vmware PowerCLI Reference


This cmdlet removes vSAN disk groups.


-VsanDiskGroup < VsanDiskGroup[] >
[-DataMigrationMode < VsanDataMigrationMode > ]
[-RunAsync ]


Required Parameter Name Type Position Features Description
VsanDiskGroup VsanDiskGroup[] named
  • pipeline
Specifies the vSAN disk groups you want to remove.
optional DataMigrationMode VsanDataMigrationMode named
Specifies the action pertaining to vSAN data when the disk group is removed. If not specified, the default value is Full.
optional RunAsync SwitchParameter named
Indicates 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.



Example 1

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

Removes the $vsanDiskGroup vSAN disk group without asking for confirmation.

Related Commands


This cmdlet retrieves the host disks that belong to a vSAN disk group.

This cmdlet adds a host SCSI disk to a vSAN disk group.

This cmdlet removes the specified hard disks from the specified vSAN disk group.


This cmdlet retrieves vSAN disk groups.

This cmdlet creates a new vSAN disk group backed by the specified devices.

This cmdlet removes vSAN disk groups.