Removes or destroys the shared folder from the storage system.



Remove-EmcCifsSharedFolder [-SharedFolder] <CifsSharedFolder> [-Force] [-Silent] [-WhatIf] [-Confirm] [<CommonParameters>]



-SharedFolder <CifsSharedFolder>

Attributes: Required, Position: 1

Specifies the ESI shared folder object, which you can get by using the ESI storage system object or by using the Get-EmcSharedFolder cmdlet. It is a positional parameter (position = 1).


-Force <SwitchParameter>

Attributes: Optional, Position: named

Allows the cmdlet to continue without asking for user confirmation.


-Silent <SwitchParameter>

Attributes: Optional, Position: named

Turns off all the informational and verbose messages. However, it still displays errors.


-WhatIf <SwitchParameter>

Attributes: Optional, Position: named

Shows what would happen if the cmdlet runs. The cmdlet is not run.


-Confirm <SwitchParameter>

Attributes: Optional, Position: named

Prompts you for confirmation before executing the command.



This cmdlet supports these common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. Type get-help about_commonparameters for more details.



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

C:\PS>$s = Get-EmcStorageSystem

C:\PS>$p = Get-EmcStoragePool -StorageSystem $s[0] -PoolType File -ID *FileSystem1*

C:\PS>$f = Get-EmcSharedFolder -Pool $p -ID *PS*


C:\PS>Remove-EmcCifsSharedFolder -SharedFolder $f

This example destroys the specified shared folder.