> For the complete documentation index, see [llms.txt](https://docs.realmjoin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmjoin.com/ja/zi-dong-hua/runbooks/runbook-references/device/general/wipe-managed-app-data.md).

# 管理対象アプリ データのワイプ

### 説明

このデバイスに対して「App selective wipe」（モバイル アプリケーション管理）を実行し、Intune ポータルのフロー「アプリ > App selective wipe > 消去要求を作成」を再現します。デバイス全体を消去することなく、アプリ保護ポリシーで保護されたアプリから会社データを削除します。通常は、MAM で管理されている（MDM に登録されていない）紛失または盗難デバイスに使用されます。

この runbook は、デバイスに登録されているユーザーを解決し、このデバイスに属するそれぞれの MAM アプリ登録を収集して、影響を受ける各ユーザー/デバイスタグごとに消去要求を作成します。消去は、保護された各アプリが次回チェックインしたときに実行されます。消去要求は、Intune ポータルの「アプリ > App selective wipe」で監視およびキャンセルできます。

### デバイスの照合

MAM アプリ登録はデバイス オブジェクトではなくユーザーに属します。そのため、この runbook はデバイスに登録されているユーザーを解決し、それぞれのアプリ登録をデバイスの EntraID デバイス ID（`azureADDeviceId`）に照合します。EntraID デバイス ID を持たない登録は、フォールバックとしてデバイスの表示名で照合されます。runbook の出力には、このフォールバックが使用された場合にその旨が示されます。

### 消去の動作

* 会社のアプリ データは、保護された各アプリがデバイスに次回チェックインしたときに削除されます。消去は即時ではありません。
* 保留中の消去要求は、Intune ポータルの *アプリ > App selective wipe*.
* アプリ保護ポリシー（MAM）で保護されたアプリ データのみが影響を受けます。デバイス オブジェクト自体には触れません。デバイスは EntraID（および、追加で MDM に登録されている場合は Intune/Autopilot）に残ります。そこからもデバイスを無効化または削除するには、次の **Outphase Device** runbook（Device \ General）をその後に実行してください。MDM に登録されたデバイスを完全に消去するには、次を使用します **デバイスの消去**.

### 場所

Device → General → 管理対象アプリ データを消去

**Runbook の完全名**

rjgit-device\_general\_wipe-managed-app-data

### 詳細

| プロパティ    | 値                                                                                       |
| -------- | --------------------------------------------------------------------------------------- |
| バージョン    | 1.0.0                                                                                   |
| 必要なモジュール | <p>RealmJoin.RunbookHelper (>= 0.8.9)<br>Microsoft.Graph.Authentication (>= 2.39.0)</p> |
| スケジュール可能 | いいえ                                                                                     |

### アクセス許可

#### アプリケーションのアクセス許可

* **種類**：Microsoft Graph
  * DeviceManagementApps.ReadWrite.All
    * *ユーザーの managedAppRegistrations を読み取り、wipeManagedAppRegistrationsByDeviceTag を使用して MAM の消去要求を作成します*
  * Device.Read.All
    * */devices を通じて対象デバイスを解決し、その登録済みユーザーと所有者を一覧表示します*
  * User.Read.All
    * *登録済みユーザーの ID と UPN を読み取り、ユーザーごとの MAM 登録クエリを作成します*

#### RBAC ロール

* Intune 管理者
  * *managedAppRegistrations の読み取りとアプリ専用 MAM 消去の投稿に対して Intune RBAC を付与します*

### パラメーター

#### DeviceId

対象デバイスのデバイス ID。

| プロパティ    | 値                        |
| -------- | ------------------------ |
| 必須       | はい                       |
| 既定値      |                          |
| 種類       | 文字列                      |
| ポータルで非表示 | はい（Runbook のカスタマイズで事前設定） |

[Runbook Reference の概要に戻る](/ja/zi-dong-hua/runbooks/runbook-references.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.realmjoin.com/ja/zi-dong-hua/runbooks/runbook-references/device/general/wipe-managed-app-data.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
