Edit

Share via


Remove-AppvClientPackage

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 that runs 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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByName
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Package

Specifies an App-V package.

Parameter properties

Type:AppvClientPackage
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByPackage
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments: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.

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByGuid
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments: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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByName
Position:1
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VersionId

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

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByGuid
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

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

Inputs

Microsoft.AppvAgent.AppvClientPackage