Delete a Device
Delete a device from Milesight Development Platform.
Request URL
DELETE {base_url}/device/openapi/v1/devices/{deviceId}
Request parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| Authorization | Yes | String | The valid access token for making API calls. The format should be Bearer {access_token}. |
| Parameter | Required | Type | Description |
|---|---|---|---|
| deviceId | Yes | Long | The unique ID of this device, which is returned when you add
the device. Note: If you did NOT save the
deviceID, you can query the device's ID using Search Specific Devices.
|
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| data | String | The SN (Serial Number) of the deleted device. |
| status | String | The result of the API request.
|
| requestId | String | The unique ID of the request, which can be used to quickly locate the request. |
Examples
- Request example
- Delete the device with ID "1739930666380779522"
- Response example
-
HTTP/1.1 200 OK { "data": "6791D1970467xxxx", "status": "Success", "requestId": "1646ae38d53b3be251eda05c2245885f" }