Remove-SCStorageLogicalUnit

Deletes any associations a logical unit has to a host under VMM management.

Syntax

Remove-SCStorageLogicalUnit [-StorageLogicalUnit] <StorageLogicalUnit> [-Confirm] [-JobVariable <String>]
 [-PROTipID <Guid>] [-RunAsynchronously] [-WhatIf] [<CommonParameters>]

Description

The Remove-SCStorageLogicalUnit cmdlet removes any associations a logical unit has to a host under Virtual Machine Manager (VMM) management. The logical unit information remains in the VMM database. By default, this operation is not destructive.

Optionally, Remove-SCStorageLogicalUnit can delete the logical unit instance from the storage pool, deleting all data contained.

Examples

Example 1: Remove a storage logical unit

PS C:\> $LU = Get-SCStorageLogicalUnit -Name "LUN01"
PS C:\> Remove-SCStorageLogicalUnit -StorageLogicalUnit $LU

The first command gets the storage logical unit object named LUN01 and stores the object in the $LU variable.

The second command deletes LUN01.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-JobVariable

Specifies that job progress is tracked and stored in the variable named by this parameter.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Type:Guid
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-StorageLogicalUnit

Specifies a storage logical unit object.

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

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

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False