# unclaimDevice

Synchronous request to unclaim a single device from a customer.

> [!NOTE]
> **Note:** The `ResellerService` class created by `SamsungResellerServiceFactory` class doesn't support this API. Use [`unclaimDeviceAsync`](https://developers.google.com/zero-touch/reseller-library/reference/methods/unclaimdevicesasync) instead.

## Method signature

    public void unclaimDevice(UnclaimDeviceRequest request) throws CommonException;

## UnclaimDeviceRequest

| Property name | Value | Required | Description |
|---|---|---|---|
| `unclaim` | `object(DeviceUnclaim)` | Yes | The device unclaim to be processed. |

## DeviceUnclaim

You must specify `deviceId` **or** `deviceIdentifier`.

| Property name | Value | Required | Description |
|---|---|---|---|
| `deviceId` | `string` | No | The device ID. |
| `deviceIdentifier` | `object(`[`DeviceIdentifier`](https://developers.google.com/zero-touch/reseller-library/reference/objects#deviceidentifier)`)` | No | The device identifier. |
| `vendorParams` | `map` | No | Extra fields, vendor specified key-value pair. |

## Error behavior

If an error occurs, the library throws a `CommonException` containing one of the
following error codes:

| Error code |
|---|
| `AUTHORIZATION_FAIL` |
| `INVALID_DEVICE_IMEI` |
| `INVALID_DEVICE_MEID` |
| `INVALID_DEVICE_SERIAL` |
| `INVALID_IDENTIFIER_SET` |
| `NOT_IMPLEMENTED` |