PowerCLI Reference

Remove-VsanFileShare

Synopsis

This cmdlet removes vSAN file shares.

Syntax

Remove-VsanFileShare [-FileShare] <VsanFileShare[]> [-Confirm] [-Server <VIServer[]>] [-WhatIf] [-Force] [<CommonParameters>]

Related Commands

Online Version
Get-VsanFileShare
New-VsanFileShare
Set-VsanFileShare

Detailed Description

This cmdlet removes vSAN file shares.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
FileShareVsanFileShare[]Specifies the list of VSAN file shares 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
ForceSwitchParameterIndicates that you want to remove the vSAN file share (for example, the file share whose ManagingEntity is the Cloud Native Storage (CNS) service).falseFalse
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.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

None

Notes

Examples

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

Remove-VsanFileShare -FileShare $vsanFileShare -Confirm:$false

Removes the $vsanFileShare vSAN file share without asking for confirmation.


Copyright © VMware, Inc. All rights reserved.