> 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). Agents can also search and read this documentation through its [MCP server](https://docs.realmjoin.com/~gitbook/mcp).

# 管理対象アプリ データを消去

この MAM 管理デバイスから会社のアプリ データを削除します

### 説明

このデバイス上でアプリ保護ポリシーによって保護されているアプリから会社データを削除します。デバイス全体はワイプしません。これは Intune ポータルで知られるアプリの選択的ワイプで、通常はアプリ保護のみで管理され、Intune に登録されていない紛失または盗難デバイスに使用されます。データは各保護アプリが次回チェックインしたときに削除されるため、ワイプは即時ではありません。保留中の要求は Intune ポータルで監視およびキャンセルできます。

### デバイスの照合

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

### ワイプの動作

* 会社アプリのデータは、各保護アプリがデバイスで次回チェックインしたときに削除されます。ワイプは即時ではありません。
* 保留中のワイプ要求は、Intune ポータルの次の場所で監視およびキャンセルできます。 *アプリ > アプリの選択的ワイプ*.
* アプリ保護ポリシー (MAM) で保護されているアプリ データのみが影響を受けます。デバイス オブジェクト自体は変更されません。Entra ID に残り (さらに MDM にも登録されている場合は Intune/Autopilot にも残ります)。そこでもデバイスを無効化または削除するには、次に **Outphase Device** runbook (Device \\\ General) を実行してください。MDM に登録されたデバイスを完全にワイプするには、次を使用します **デバイスのワイプ**.

### 場所

デバイス → 全般 → マネージド アプリ データのワイプ

**完全な Runbook 名**

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

### 詳細

| プロパティ    | 値                                                                                        |
| -------- | ---------------------------------------------------------------------------------------- |
| バージョン    | 1.0.0                                                                                    |
| 必須モジュール  | <p>RealmJoin.RunbookHelper (>= 0.8.10)<br>Microsoft.Graph.Authentication (>= 2.41.2)</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

この runbook が対象とするデバイスの Entra ID デバイス ID。ポータルによって、選択したデバイスから設定されます。

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

[Runbook リファレンスの概要に戻る](https://docs.realmjoin.com/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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
