> 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-device.md).

# デバイスをワイプ

### 説明

Windows または MacOS デバイスをワイプします。Windows デバイスでは、通常のワイプと保護されたワイプのいずれかを選択できます。MacOS デバイスでは、必要に応じて回復コードを指定し、消去の動作を指定できます。

### 場所

デバイス → 全般 → デバイスのワイプ

**完全な Runbook 名**

rjgit-device\_general\_wipe-device

### アクセス許可

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

* **種類**: Microsoft Graph
  * DeviceManagementManagedDevices.PrivilegedOperations.All
  * DeviceManagementManagedDevices.ReadWrite.All
  * DeviceManagementServiceConfig.ReadWrite.All
  * Device.Read.All

#### RBAC ロール

* クラウド デバイス管理者

### パラメーター

#### デバイス ID

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

| プロパティ | 値    |
| ----- | ---- |
| 必須    | true |
| 既定値   |      |
| 種類    | 文字列  |

#### wipeDevice

「このデバイスをワイプしますか？」(最終値: true) または「デバイスをワイプしない」(最終値: false) を実行するアクションとして選択できます。true に設定すると、runbook は Intune でデバイスのワイプ アクションをトリガーします。false に設定すると、Intune でデバイスに対してワイプ アクションはトリガーされません。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   | True  |
| 種類    | ブール値  |

#### useProtectedWipe

Windows のみ。true に設定すると、保護されたワイプを使用します。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   | False |
| 種類    | ブール値  |

#### removeIntuneDevice

true に設定すると、Intune デバイス オブジェクトを削除します。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   | False |
| 種類    | ブール値  |

#### removeAutopilotDevice

Windows のみ。「AutoPilot データベースからデバイスを削除しますか？」(最終値: true) または「デバイスを保持 / 気にしない」(最終値: false) を実行するアクションとして選択できます。true に設定すると、runbook は AutoPilot データベースからデバイスを削除し、デバイスが Tenant から離脱できるようにします。false に設定すると、デバイスは AutoPilot データベースに残り、Tenant 内で別のユーザー/デバイスに再割り当てできます。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   | False |
| 種類    | ブール値  |

#### removeAADDevice

「Entra ID からデバイスを削除しますか？」(最終値: true) または「デバイスを保持 / 気にしない」(最終値: false) を実行するアクションとして選択できます。true に設定すると、runbook は Entra ID (Azure AD) からデバイス オブジェクトを削除します。false に設定すると、デバイス オブジェクトは Entra ID (Azure AD) に残ります。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   | False |
| 種類    | ブール値  |

#### disableAADDevice

「Entra ID でデバイスを無効にしますか？」(最終値: true) または「デバイスを保持 / 気にしない」(最終値: false) を実行するアクションとして選択できます。true に設定すると、runbook は Entra ID (Azure AD) でデバイス オブジェクトを無効にします。false に設定すると、デバイス オブジェクトは Entra ID (Azure AD) で有効なままになります。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   | False |
| 種類    | ブール値  |

#### macOsRecoveryCode

MacOS のみ。古いデバイス用の回復コード。新しいデバイスでは不要な場合があります。

| プロパティ | 値      |
| ----- | ------ |
| 必須    | false  |
| 既定値   | 123456 |
| 種類    | 文字列    |

#### macOsObliterationBehavior

MacOS のみ。ワイプ中の OS の消去動作を制御します。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   | デフォルト |
| 種類    | 文字列   |

[Runbook リファレンスの概要に戻る](/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:

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

The question should be specific, self-contained, and written in natural language.
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.
