Remove-AppxPackage
Removes an app package (.appx) from a user account.
Syntax
Remove-AppxPackage
[-Package] <String>
[-PreserveApplicationData]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Remove-AppxPackage cmdlet removes an app package (.appx) from a user account.
Examples
Example 1
PS C:\>Remove-AppxPackage package1_1.0.0.0_neutral__8wekyb3d8bbwe
This command removes an app package named package1_1.0.0.0_neutral__8wekyb3d8bbwe from the account of the currently logged-on user.
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 |
-Package
Specifies an AppxPackage object or the full name of a package.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PreserveApplicationData
Specifies whether the application data should be preserved during the package removal. The application data will then be available for later use.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
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 |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
String[]
Microsoft.Windows.Appx.PackageManager.Commands.AppxPackage
An AppxPackage object that contain information, including the full name of the app package.
Outputs
None