Export (0) Print
Expand All

Remove-AppxPackage

Windows Server 2012 R2 and Windows 8.1

Updated: March 3, 2014

Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2

Remove-AppxPackage

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

Syntax

Parameter Set: RemoveByPackageSet
Remove-AppxPackage [-Package] <String> [-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

none

Accept Pipeline Input?

true (ByValue)

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.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

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


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

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

    An AppxPackage object that contain information, including the full name of the app package.


Outputs

The output type is the type of the objects that the cmdlet emits.

  • 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

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft