Remove-SCStorageVolume

Deletes an existing Storage Volume.

Syntax

Remove-SCStorageVolume
      [-VMMServer <ServerConnection>]
      [-StorageVolume] <StorageVolume>
      [-RunAsynchronously]
      [-PROTipID <Guid>]
      [-JobVariable <String>]
      [<CommonParameters>]

Description

The Remove-SCStorageVolume cmdlet deletes an existing Storage Volume using the Virtual Machine Manager Server.

Examples

Example 1: Remove a Storage Volume

PS C:\> $volume = Get-SCStorageVolume -Name "vol1" 
PS C:\> Remove-SCStorageVolume -StorageVolume $volume

The first command gets the volume object named vol1, and then stores that object in the $volume variable. The second command removes the volume stored in $Volume.

Required Parameters

-StorageVolume
Type:StorageVolume
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-JobVariable
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PROTipID
Type:Guid
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunAsynchronously
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMMServer
Type:ServerConnection
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False