> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# WdRemoveDeviceId

> WdRemoveDeviceId

デバイス ID を指定して、ローカルのペアリング承認を 1 つ削除します。

**導入バージョン:** [RIT 0.0.14-preview](https://docs.xbox.com/ja-jp/reference/remoting/release-versions.md#release-versions)。

## 構文

```cpp theme={null}
HRESULT WD_REMOTE_ITERATION_CALL WdRemoveDeviceId(
    _In_z_ const char* deviceId
);
```

### パラメーター

`deviceId`\
Type: **const char\***

ローカルのペアリング デバイス ID を表す、正確な 40 文字の 16 進数。

### 戻り値

Type: **HRESULT**

成功した場合は `S_OK` を返します。それ以外の場合は、エラーを示す HRESULT を返します。カタログ操作では、「[XBOX PC Remote Iteration API エラー コード](https://docs.xbox.com/ja-jp/reference/remoting/error-codes.md)」で説明されているカタログ固有のエラーも返されます。

## 解説

正規化された 40 文字の 16 進数のデバイス ID を指定します。存在しない承認を削除しても成功します。保存済みのレコード、ローカル キー、展開されたファイル、またはエンドポイント上のこのクライアントの承認は削除されません。アクセス エラーは返されます。

保存済みデバイスの API とペアリング ID の API は、それぞれ異なるローカル ストアを変更します。これらの API は、リモート API 呼び出しの明示的な `remoteDevice` 引数に代わるものではありません。既定のデバイスを選択したい呼び出し元は、自分で解決する必要があります。

## 要件

| 要件 | 値 |
| - | - |
| **ヘッダー** | WdRemoteIteration.h |
| **ライブラリ** | wdremoteapi.lib |
| **NuGet パッケージ** | [Microsoft.GDK.RemoteIterationClientApi](https://aka.ms/GameDevRemoteAPI) |

## 関連項目

* [XBOX PC Remote Iteration API](https://docs.xbox.com/ja-jp/reference/remoting/remoteiteration_members.md)


## Related topics

- [XBOX PC Remote Iteration API](https://docs.xbox.com/ja-jp/reference/remoting/remoteiteration_members.md)
- [WdRemoveDevice](https://docs.xbox.com/ja-jp/reference/remoting/functions/wdremovedevice.md)
- [WdRemoveDeviceProperty](https://docs.xbox.com/ja-jp/reference/remoting/functions/wdremovedeviceproperty.md)
- [WdRemoveDeviceMetadataNamespace](https://docs.xbox.com/ja-jp/reference/remoting/functions/wdremovedevicemetadatanamespace.md)
- [WdDeviceIdCallback](https://docs.xbox.com/ja-jp/reference/remoting/callbacks/wddeviceidcallback.md)
