Delete Devices

Last Updated on : 2024-09-10 01:49:16

Delete devices from the specified group based on the group ID and device IDs.

API address

DELETE: /v2.0/cloud/thing/group/{group_id}/devices

Request parameter

Parameter nameTypeINRequiredDescription
group_idLongpathtrueThe ID of the specified group.

Description of body

Parameter nameTypeINRequiredDescription
device_idsStringbodytrueThe list of up to 20 device IDs, separated with commas (,).

Return parameter

Parameter nameTypeDescription
resultBooleanThe list of returned data.
successBooleanIndicates whether the operation is successful. Valid values:
  • true: The operation succeeded.
  • false: The operation failed.
tLongThe timestamp.
tidStringThe link ID.

Request example

DELETE: /v2.0/cloud/thing/group/12856***/devices
{
  "device_ids": "vdevo16381*****,5529739***"
}

Return example

{
    "tid": "555835dab32211edaa2fba12a1143bd9",
    "result": true,
    "t": 1677119556240,
    "success": true
}

Error code

For more information, see error code.

Limits on API Request Frequency

For more information, see Limits on API Request Frequency.