Remove-SCStorageClassification

Deletes a storage classification object from the VMM database.

Syntax

Remove-SCStorageClassification
      [-StorageClassification] <StorageClassification>
      [-RunAsynchronously]
      [-PROTipID <Guid>]
      [-JobVariable <String>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Remove-SCStorageClassification cmdlet deletes a storage classification object from the Virtual Machine Manager (VMM) database. Deleting a storage classification removes the associations that storage classification had with any storage pools.

Examples

Example 1: Remove a storage classification

PS C:\> $Class = @(Get-SCStorageClassification)[0]
PS C:\> Remove-SCStorageClassification -StorageClassification $Class

The first command gets the first item in the storage classification array, and then stores it in the $Class variable.

The second command removes the storage classification stored in $Class.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

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

-JobVariable

Specifies the name of a variable in which job progress is tracked and stored.

Type:String
Position:Named
Default value:None
Required:False
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
Position:Named
Default value:None
Required:False
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
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-StorageClassification

Specifies a storage classification object that this cmdlet deletes.

Type:StorageClassification
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

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

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