Remove-SCSpfVMRoleGalleryItem

Removes an item from the gallery.

Syntax

Remove-SCSpfVMRoleGalleryItem [-Confirm] -Name <String> -Publisher <String> -Version <String> [-WhatIf]
 [<CommonParameters>]
Remove-SCSpfVMRoleGalleryItem [-VMRoleGalleryItem] <VMRoleGalleryItem[]> [-Confirm] [-WhatIf]
 [<CommonParameters>]

Description

The Remove-SCSPFVMRoleGalleryItem cmdlet removes a gallery item from the vmm12sp1_long or the Service Provider Foundation database.

Examples

Example 1: Remove a gallery item

PS C:\>$Item = Get-SCSPFVMRoleGalleryItem -Name "570569955cbfb62b374358b34467
020750f65c"
PS C:\> Remove-SCSPFVmRoleGalleryItem -VMRoleGalleryItem $Item

The first command gets an item by name and stores it in the $Item variable. The next command removes the item.

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
-Name

Specifies the publisher of the gallery item to remove.

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

Specifies the publisher of the item to remove.

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

Specifies one or more gallery items to remove.

Type:VMRoleGalleryItem[]
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Version

Specifies the version of the item to remove.

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