API Reference
## Delete Device Group ### Uses and Requirements Deletes a device group from the account. Devices in the group are moved to the default device group and are not deleted from the account. ### Request HTTP Request DELETE https://thingspace.verizon.com/api/m2m/v1/groups/{accountname}/name/{gname} ### Resource and Query Parameters You must specify the account name and group name in the resource path. | Parameter Name | Data Type | Description | |:---------------------:|:---------:|:---------------------------------------------------------------------------------------------------------------------------------------------------------:| | accountname required | string | The name of the account that contains the device group that you want to delete. An account name is usually numeric, and must include any leading zeros. | | gname required | string | | ### Header Parameters The request header must contain a current ThingSpace authorization bearer token and a valid VZ-M2M session token, and must set the content-type to JSON. | Parameter Name | Data Type | Description | |:-----------------------:|:---------:|:------------------------------------------------------:| | Authorization required | string | HTTP Authorization bearer token. | | VZ-M2M-Token required | string | A valid session token returned by POST /session/login. | | Content-Type required | string | Must be application/json. | ### Request Body None ### Success Responses Status 200 | Parameter Name | Data Type | Description | |:--------------:|:---------:|:---------------------------------------------------------------------------:| | success | string | A value of “true” indicates that the device group was updated successfully. | ### Example Success Response ```json { "success": true } ``` ### Failure Responses Status 400 All error messages are returned in this format: ```json { "errorCode": "error code string", "errorMessage": "error message string" } ```