# unsetDeviceLocation

Audience: Developer

**Served by:** [management](https://docs.pyck.cloud/dev/api/services/management.md)

## Arguments

| Name | Type |
| --- | --- |
| `id` | ID! |

## Returns

[DeviceLocationDeletePayload](https://docs.pyck.cloud/dev/api/types/devicelocationdeletepayload.md)!

## Example

Removes a device-location assignment by device location ID.

```graphql
mutation UnsetDeviceLocation($id: ID!) {
  unsetDeviceLocation(id: $id) {
    deletedID
    eventCount
    transactionID
  }
}
```

**Variables**

```json
{
  "id": "<device location ID>"
}
```
