Table of contents
TOC
Collapse the table of content
Expand the table of content

Remove-AppvClientPackage

Last Updated: 3/8/2017

SYNOPSIS

Removes the package from a computer.

SYNTAX

ByGuid (Default)

Remove-AppvClientPackage [-PackageId] <Guid> [-VersionId] <Guid> [<CommonParameters>]

ByPackage

Remove-AppvClientPackage [-Package] <AppvClientPackage> [<CommonParameters>]

ByName

Remove-AppvClientPackage [-Name] <String> [[-Version] <String>] [<CommonParameters>]

DESCRIPTION

The Remove-AppvClientPackage cmdlet removes the package from computer running the Microsoft Application Virtualization (App-V) client. The cmdlet deletes the AppvClientPackage object.

EXAMPLES

Example 1: Remove a version of a package by using the pipeline operator

PS C:\> Get-AppvPackage -Name "MyPackage" -Version 1 | Remove-Package

This command gets version 1 of the package named MyPackage, and then removes it from the computer.

Example 2: Remove a version of a package

PS C:\> Remove-Package -Name "MyPackage" -Version 1

This command removes version 1 of the package named MyPackage from the computer.

PARAMETERS

-Name

Specifies the friendly name of the package given during sequencing. This value is obtained from the package manifest.

Type: String
Parameter Sets: ByName
Aliases: 

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

-Package

Not Specified.

Type: AppvClientPackage
Parameter Sets: ByPackage
Aliases: 

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

-PackageId

Specifies the package ID that uniquely identifies the package. It can be found in the package manifest or by opening the package in the sequencer. The package ID is shared by all versions of a specific package.

Type: Guid
Parameter Sets: ByGuid
Aliases: 

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

-Version

Specifies the version of an App-V package in a lineage. If you do not specify this parameter, the cmdlet operates on all versions on the computer.

Type: String
Parameter Sets: ByName
Aliases: 

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-VersionId

Specifies a GUID that differentiates a package version from other versions, whether older, newer, or of a completely different lineage. If you do not specify this parameter, the cmdlet operates on all versions of the package.

Type: Guid
Parameter Sets: ByGuid
Aliases: 

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

Microsoft.AppvAgent.AppvClientPackage

OUTPUTS

NOTES

Add-AppvClientPackage

Get-AppvClientPackage

Mount-AppvClientPackage

Publish-AppvClientPackage

Publish-AppvClientPackage

Repair-AppvClientPackage

Set-AppvClientPackage

Stop-AppvClientPackage

Unpublish-AppvClientPackage

© 2017 Microsoft