Removes a XenServer storage repository.



Remove-EmcXenServerStorageRepository -StorageRepository <StorageRepository> [-Force] [-Silent] [-WhatIf] [-Confirm] [<CommonParameters>]



-StorageRepository <StorageRepository>

Attributes: Required, Position: named

Specifies the storage repository to remove.


-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>$xs = Get-EmcXenServerSystem *183

C:\PS>$sr = Get-EmcXenServerStorageRepository -ID test_sr -XenServer $xs

C:\PS>Remove-EmcXenServerStorageRepository -StorageRepository $sr

This example removes a storage repository from the XenServer system. Ensure that there are no virtual disk images remaining on the storage repository.