Remove-AppvClientPackage
Remove-AppvClientPackage is accessible with the help of AppVClient module. To configure AppVClient, go through this link.
Synopsis
Removes the package from a computer.
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.
Parameters
-Name
Specifies the friendly name of the package given during sequencing. This value is obtained from the package manifest.
Type: | String |
Position: | 0 |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Package
Specifies an App-V package.
Type: | AppvClientPackage |
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 |
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 |
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 different lineage. If you do not specify this parameter, the cmdlet operates on all versions of the package.
Type: | Guid |
Position: | 1 |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Syntax
Remove-AppvClientPackage [-PackageId] <Guid> [-VersionId] <Guid> [<CommonParameters>]
Remove-AppvClientPackage [-Package] <AppvClientPackage> [<CommonParameters>]
Remove-AppvClientPackage [-Name] <String> [[-Version] <String>] [<CommonParameters>]
——————-Example 1——————-
Remove a version of a package by using the pipeline operator
PS C:\> Get-AppvPackage -Name “AppPackage” -Version 1 | Remove-Package
This command gets version 1 of the package named AppPackage, and then removes it from the computer.
——————-Example 2——————-
Remove a version of a package
PS C:\> Remove-Package -Name “AppPackage” -Version 1
This command removes version 1 of the package named AppPackage from the computer.
You can check the Version, CommandType and Source of this cmdlet by giving below command.
Get-Command Remove-AppvClientPackage
You can also read about
- Add-AppvClientPackage
- Get-AppvClientPackage
- Mount-AppvClientPackage
- Publish-AppvClientPackage
- Repair-AppvClientPackage
- Set-AppvClientPackage
- Stop-AppvClientPackage
- Unpublish-AppvClientPackage