Remove-AppxPackage

Remove-AppxPackage

Removes an app package from a user account.

構文

Parameter Set: RemoveByPackageSet
Remove-AppxPackage [-Package] <String> [-PreserveApplicationData] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Remove-AppxPackage cmdlet removes an app package from a user account. An app package has an .appx file name extension.

パラメーター

-Package<String>

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

Aliases

none

必須/オプション

true

位置

1

既定値

none

パイプライン入力の受け入れ

true (ByValue)

ワイルドカード文字の受け入れ

false

-PreserveApplicationData

Specifies that the cmdlet preserves the application data during the package removal. The application data is available for later use.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-Confirm

コマンドレットを実行する前に確認メッセージを表示します。

必須/オプション

false

位置

named

既定値

false

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-WhatIf

コマンドレットが実行された場合に何が起きるのかを示します。コマンドレットは実行されません。

必須/オプション

false

位置

named

既定値

false

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

<CommonParameters>

このコマンドレットは共通のパラメーターをサポートしています(-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、および -OutVariable)。詳細については、TechNet の「 「about_CommonParameters」 (https://go.microsoft.com/fwlink/p/?LinkID=113216) を参照してください。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

  • System.String[]

  • Microsoft.Windows.Appx.PackageManager.Commands.AppxPackage

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

出力

出力型は、コマンドレットが出力するオブジェクトの型です。

  • None

使用例

Example 1: Remove an app package

This command removes an app package named package1_1.0.0.0_neutral__8wekyb3d8bbwe from the account of the current user.

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

関連項目

Get-AppxPackage

Get-AppxPackageManifest

Add-AppxPackage

Move-AppxPackage

Get-AppxLog

Get-AppxLastError

Package Manager API

How to Add and Remove Apps