Remove-SCStorageLogicalUnit

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

Description

The Remove-SCStorageLogicalUnit cmdlet removes any associations a logical unit has to a host under System Center 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. 

For more information about Remove-SCStorageLogicalUnit, type: "Get-Help Remove-SCStorageLogicalUnit -online".

Parameters

StorageLogicalUnit

Required? true
Accept Pipeline Input? true (ByValue)
Position? 0
Specifies a storage logical unit object.

JobVariable

Required? false
Accept Pipeline Input? false
Position? named
Specifies that job progress is tracked and stored in the variable named by this parameter. 

PROTipID

Required? false
Accept Pipeline Input? false
Position? named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

RunAsynchronously

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the job runs asynchronously so that control returns to the command shell immediately. 

Examples

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. 

See Also