Remove-VsanFileShare

This cmdlet removes vSAN file shares.

Syntax

-FileShare  <VsanFileShare[]>
[-Force]
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
FileShare
VsanFileShare[] named
  • wildcards
  • pipeline
  • Specifies the list of VSAN file shares you want to remove.
    optional
    Force
    SwitchParameter named Indicates that you want to remove the vSAN file share (for example, the file share whose ManagingEntity is the Cloud Native Storage (CNS) service).
    optional
    Server
    VIServer[] named
  • wildcards
  • 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 the Connect-VIServer cmdlet.

    Output

    Examples


    Example 1

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

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

    Related Commands

    Feedback

    Was this page helpful?