> ## 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

Removes one local pairing authorization by device ID.

**Introduced in:** [RIT 0.0.14-preview](https://docs.xbox.com/reference/remoting/release-versions.md#release-versions).

## Syntax

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

### Parameters

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

The exact 40-character hexadecimal local pairing device ID.

### Return value

Type: **HRESULT**

Returns `S_OK` on success; otherwise returns a failure HRESULT. Catalog operations also return catalog-specific errors described in [Error codes](https://docs.xbox.com/reference/remoting/error-codes.md).

## Remarks

Supply a normalized 40-character hexadecimal device ID. Removing an absent authorization succeeds. This doesn't remove saved records, local keys, deployed files, or this client's authorization on the endpoint. Access failures are returned.

Saved-device APIs and pairing-ID APIs change different local stores. They don't replace the explicit `remoteDevice` argument of a remote API call; callers that want default selection must resolve it themselves.

## Requirements

| Requirement | Value |
| - | - |
| **Header** | WdRemoteIteration.h |
| **Library** | wdremoteapi.lib |
| **NuGet Package** | [Microsoft.GDK.RemoteIterationClientApi](https://aka.ms/GameDevRemoteAPI) |

## See also

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


## Related topics

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