This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
Removes an app package from one or more user accounts.
Remove-AppxPackage [-Package] <String> [-PreserveApplicationData] [-WhatIf] [-Confirm] [<CommonParameters>]
Remove-AppxPackage [-Package] <String> [-PreserveRoamableApplicationData] [-WhatIf] [-Confirm] [<CommonParameters>]
Remove-AppxPackage [-Package] <String> [-AllUsers] [-WhatIf] [-Confirm] [<CommonParameters>]
Remove-AppxPackage [-Package] <String> -User <String> [-WhatIf] [-Confirm] [<CommonParameters>]
TheRemove-AppxPackage
cmdlet removes an app package from a user account. An app package has an.msix
or.appx
file extension.
Remove-AppxPackage -Package 'package1_1.0.0.0_neutral__8wekyb3d8bbwe'
This command removes an app package namedpackage1_1.0.0.0_neutral__8wekyb3d8bbwe
from theaccount of the current user.
This parameter removes the app package for all user accounts on the computer. The parameter worksoff the parent package type. If it's a bundle, usePackageTypeFilter with theGet-AppxPackage
command and specify the bundle. To use this parameter, you must run the command with administratorpermissions.
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Default value: | False |
Supports wildcards: | False |
DontShow: | False |
Aliases: | cf |
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
Specifies anAppxPackage object or the full name of a package.
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Position: | 0 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
Specifies that the cmdlet preserves the application data during the package removal. Theapplication data is available for later use. Note that this is only applicable for apps that areunder development so this option can only be specified for apps that are registered from filelayout (Loose file registered).
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
Preserves the roamable portion of the app's data when the package is removed. This parameter isincompatible withPreserveApplicationData.
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
If you specify this parameter, the cmdlet removes the app package for only the user that this cmdletspecifies. To remove a package for a user profile other than the profile of the current user, youmust run this command with administrator permissions.
Note
This parameter only accepts user SIDs. Use thewhoami /user command to display the currentSID of a user. Seewhoami syntax fordetails.
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
Shows what would happen if the cmdlet runs. The cmdlet isn't run.
Type: | SwitchParameter |
Default value: | False |
Supports wildcards: | False |
DontShow: | False |
Aliases: | wi |
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, seeabout_CommonParameters.
AnAppxPackage object that contain information, including the full name of the app package.
Was this page helpful?
Was this page helpful?