Delete Device Group

This endpoint deletes a specific Device Group.

Request

To delete an Device Group please make a DELETE request to the following URL:

HTTP MethodURL
DELETEhttps://industrial.api.ubidots.com/api/v2.0/device:_groups/<device_group_key>/

Path Parameters

ParameterRequired?Description
<device_group_key>YesThe id or label of the Device Group, label should use the prefix ~

Query Parameters

ParameterTypeUseDescription
tokenStringAuthenticationAuthentication Token can optionally be sent as a query parameter.

Header

ParameterRequired?Description
X-Auth-TokenYesAuthentication Token of account
$ curl -X DELETE 'https://industrial.api.ubidots.com/api/v2.0/device_groups/<device_gropup_key>/' \
 -H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73' \
{
    "code": 400001,
    "message": "Validation Error.",
    "detail": {
        ....
    }
}
{
    "code": 401001,
    "message": "Authentication credentials were not provided.",
    "detail": "Authentication credentials were not provided."
}

Response

If the Device Group was deleted successfully, returns status code 204.


❗️

Attention

Deleting a Device Group cannot be undone. Please backup any data before deleting an Device Group.