Sdílet prostřednictvím


Remove-SCStorageVolume

Deletes an existing Storage Volume.

Syntax

Default (Default)

Remove-SCStorageVolume
    [-VMMServer <ServerConnection>]
    [-StorageVolume] <StorageVolume>
    [-JobGroup <Guid>]
    [-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.

Parameters

-JobGroup

{{Fill JobGroup Description}}

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-JobVariable

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PROTipID

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

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-RunAsynchronously

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-StorageVolume

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

Parameter properties

Type:StorageVolume
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-VMMServer

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

Parameter properties

Type:ServerConnection
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.