Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Remove-AppxPackage

Remove-AppxPackage

microsoft.windows.appx.packagemanager.commands.dll

Synopsis

Removes an app package (.appx) from a user account.

Syntax

Remove-AppxPackage [-Package] [-PreserveApplicationData] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Remove-AppxPackage cmdlet removes an app package (.appx) from a user account.

Parameters

-Package <String>

Specifies an AppxPackage object or the full name of a package.

Aliases

None

Required?

true

Position

1

Default value

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

-PreserveApplicationData <SwitchParameter>

Specifies whether the application data should be preserved during the package removal. The application data will then be available for later use.

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-Confirm <SwitchParameter>

Prompts you for confirmation before running the cmdlet.

Aliases

None

Required?

false

Position

named

Default value

false

Accept pipeline input?

false

Accept wildcard characters?

false

-WhatIf <SwitchParameter>

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Aliases

None

Required?

false

Position

named

Default value

false

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type

System.String[]
Microsoft.Windows.Appx.PackageManager.Commands.AppxPackage

Return Type

None

Notes

None

Examples

Example 1

This command removes an app package named package1_1.0.0.0_neutral__8wekyb3d8bbwe from the account of the currently logged-on user.

PS C:\>Remove-AppxPackage package1_1.0.0.0_neutral__8wekyb3d8bbwe

Online Version
Package Manager API
How to Add and Remove Apps
Get-AppxPackage
Get-AppxPackageManifest
Add-AppxPackage
Get-AppxLog
Get-AppxLastError