Remove-VsanStoragePoolDisk Command | Vmware PowerCLI Reference


This cmdlet removes a single or multiple storage pool disks on a vSAN cluster.


-VsanStoragePoolDisk < VsanStoragePoolDisk[] >
[-Purpose < String > ]
[-RunAsync ]
[-Server < VIServer[] > ]
[-VsanDataMigrationMode < VsanDataMigrationMode > ]


Required Parameter Name Type Position Features Description
VsanStoragePoolDisk VsanStoragePoolDisk[] named
  • pipeline
Specifies the vSAN storage pool disks to remove.
optional Purpose String named
Specifies the purpose for removing the disk.
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 vSphere PowerCLI console.
optional Server VIServer[] named
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.
optional VsanDataMigrationMode VsanDataMigrationMode named
Specifies the decommissioning mode of removing the storage pool disks. Full = 0, EnsureAccessibility = 1, NoDataMigration = 2



Example 1

$disks =get-vsanstoragepooldisk -VMHost (Get-VMHost
Remove-VsanStoragePoolDisk -VsanStoragePoolDisk $disks -VsanDataMigrationMode nodatamigration -Purpose "test" -Confirm:$false

Removes vSAN storage pool disks from the specified host without confirmation.

Related Commands


This cmdlet runs a storage performance test on the specified vSAN clusters and returns the test results.


This cmdlet adds one or multiple disks to the unique storage pool under a certain host. This cmdlet returns VsanStoragePoolDisk information of a disk that is claimed by a storage pool. Storage pool refers to vSAN ESA disks.

This cmdlet fetches VsanStoragePoolDisk information from a certain host or cluster. It also enables you to fetch storage pool disks by disk canonical name. If both host and disk canonical name are specified, the system uses both parameters.

This cmdlet removes a single or multiple storage pool disks on a vSAN cluster.