deleteDevice
Mutation
Deletes an existing Device.
Response
Returns Device
Arguments
| Name | Type | Description |
|---|---|---|
id | ID! | The unique identifier of the device to delete. |
Example
mutation deleteDevice( $id: ID!) { deleteDevice( id: $id ) { id uuid externalId name enabled address frameRate position { type coordinates crs { type properties } } dataSource { id name type device { id uuid externalId name enabled address frameRate transcoderId lastHeartbeat } zones { id name active createdAt updatedAt } labels } site { id name timezone position { type coordinates } polygon { type coordinates } devices { id uuid externalId name enabled address frameRate transcoderId lastHeartbeat } pointsOfInterest { id name metadata } geofences { id name labels active } facilities { id name metadata } } transcoderId calibrations { id timestamp markers { id name } precomputeAt } pointOfInterest { id site { id name timezone } name position { type coordinates } devices { id uuid externalId name enabled address frameRate transcoderId lastHeartbeat } geofences { id name labels active } metadata } lastHeartbeat }}{ "id": "dd55fa9e-0f28-8ff1-a052-fe9843564d24"}{ "data": { "deleteDevice": { "id": "61d2e4db-361d-8d20-92f2-04f4efd74ac2", "uuid": "c43d07da-1005-849e-88e2-1ac21370e6c3", "externalId": "fb6f96a9-958e-889f-8d8b-56797ec9a35c", "name": "name-c8f9", "enabled": true, "address": "address-b541", "frameRate": 198.29, "position": { "type": "type-bd8d", "coordinates": [ 538.37 ], "crs": { "type": "type-8d98", "properties": {} } }, "dataSource": { "id": "d12da500-1c9d-8517-8064-a811ebcd3707", "name": "name-549e", "type": "FOLDER", "device": { "id": "61d2e4db-361d-8d20-92f2-04f4efd74ac2", "uuid": "c43d07da-1005-849e-88e2-1ac21370e6c3", "externalId": "fb6f96a9-958e-889f-8d8b-56797ec9a35c", "name": "name-c8f9", "enabled": true, "address": "address-b541", "frameRate": 198.29, "transcoderId": "26ca1b82-27b2-8a32-9063-ce85dbc5be74", "lastHeartbeat": "2025-01-01T00:00:00.000Z" }, "zones": [ { "id": "9bc230c0-d8c6-87f8-89d2-790b14007ed2", "name": "name-bf20", "active": true, "createdAt": "2025-01-01T00:00:00.000Z", "updatedAt": "2025-01-01T00:00:00.000Z" } ], "labels": [ "labels-516b" ] }, "site": { "id": "f5e73b52-9179-8799-92de-27516934ea4d", "name": "name-ac75", "timezone": "timezone-4f92", "position": { "type": "type-bd8d", "coordinates": [ 538.37 ] }, "polygon": { "type": "type-1b8e", "coordinates": [ [ [ [ 320.82 ] ] ] ] }, "devices": [ { "id": "61d2e4db-361d-8d20-92f2-04f4efd74ac2", "uuid": "c43d07da-1005-849e-88e2-1ac21370e6c3", "externalId": "fb6f96a9-958e-889f-8d8b-56797ec9a35c", "name": "name-c8f9", "enabled": true, "address": "address-b541", "frameRate": 198.29, "transcoderId": "26ca1b82-27b2-8a32-9063-ce85dbc5be74", "lastHeartbeat": "2025-01-01T00:00:00.000Z" } ], "pointsOfInterest": [ { "id": "9bf022b1-0c59-8550-8625-aca917feaaeb", "name": "name-9f71", "metadata": {} } ], "geofences": [ { "id": "a9cd2c5d-0ca1-8c25-a90a-11ef7a2bdb24", "name": "name-163f", "labels": [ "labels-914c" ], "active": false } ], "facilities": [ { "id": "b74f2e17-122f-881f-b24c-01864ff83b5a", "name": "name-d590", "metadata": {} } ] }, "transcoderId": "26ca1b82-27b2-8a32-9063-ce85dbc5be74", "calibrations": [ { "id": "df384b8d-3900-85a7-b8c8-32d6f760286a", "timestamp": "2025-01-01T00:00:00.000Z", "markers": [ { "id": "ff45c66c-7ef4-82ae-800d-7ff55a11e8f7", "name": "name-55f3" } ], "precomputeAt": "2025-01-01T00:00:00.000Z" } ], "pointOfInterest": { "id": "9bf022b1-0c59-8550-8625-aca917feaaeb", "site": { "id": "f5e73b52-9179-8799-92de-27516934ea4d", "name": "name-ac75", "timezone": "timezone-4f92" }, "name": "name-9f71", "position": { "type": "type-bd8d", "coordinates": [ 538.37 ] }, "devices": [ { "id": "61d2e4db-361d-8d20-92f2-04f4efd74ac2", "uuid": "c43d07da-1005-849e-88e2-1ac21370e6c3", "externalId": "fb6f96a9-958e-889f-8d8b-56797ec9a35c", "name": "name-c8f9", "enabled": true, "address": "address-b541", "frameRate": 198.29, "transcoderId": "26ca1b82-27b2-8a32-9063-ce85dbc5be74", "lastHeartbeat": "2025-01-01T00:00:00.000Z" } ], "geofences": [ { "id": "a9cd2c5d-0ca1-8c25-a90a-11ef7a2bdb24", "name": "name-163f", "labels": [ "labels-914c" ], "active": false } ], "metadata": {} }, "lastHeartbeat": "2025-01-01T00:00:00.000Z" } }}