Remove-SCStorageVolume
In this article
Syntax
Description
Examples
Parameters
Related Links
Deletes an existing Storage Volume.
Remove-SCStorageVolume
[-VMMServer <ServerConnection>]
[-StorageVolume] <StorageVolume>
[-JobGroup <Guid>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
The Remove-SCStorageVolume cmdlet deletes an existing Storage Volume using the Virtual Machine Manager Server.
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.
{{Fill JobGroup Description}}
Expand table
Type: Guid
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False
Expand table
Type: String
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False
Expand table
Type: Guid
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False
Expand table
Type: SwitchParameter
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False
Expand table
Type: StorageVolume
Position: 0
Default value: None
Required: True
Accept pipeline input: True
Accept wildcard characters: False
Expand table
Type: ServerConnection
Position: Named
Default value: None
Required: False
Accept pipeline input: True
Accept wildcard characters: False