# デバイスをワイプ

### 説明

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

### 場所

Device → General → Wipe Device

**ランブックの完全名**

rjgit-device\_general\_wipe-device

### アクセス許可

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

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

#### RBAC ロール

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

### パラメーター

#### DeviceId

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

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

#### wipeDevice

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

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

#### useProtectedWipe

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

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

#### removeIntuneDevice

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

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

#### removeAutopilotDevice

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

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

#### removeAADDevice

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

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

#### disableAADDevice

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

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

#### macOsRecoveryCode

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

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

#### macOsObliterationBehavior

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

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

[ランブック リファレンスの概要に戻る](/ja/zi-dong-hua/runbooks/runbook-references.md)


---

# Agent Instructions: 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.
