Delete Device Group

Delete a Device Group:
DELETE /groups/{aname}/name/{gname}

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.

Contents

See also:
Get a List of Device Groups
Get Information about a Device Group
Update a Device Group
Create a Device Group

Request Components

HTTP Request

DELETE https://thingspace.verizon.com/api/m2m/v1/groups/{aname}/name/{gname}

Resource and Query Parameters

You must specify the account name and group name in the resource path.

Parameter Name Data Type Description
aname
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 The name of the device group that you want to delete.

Header Parameters

The request header must contain the current session token.

Parameter Name Data Type Description
VZ-M2M-Token
required
string A valid session token returned by POST /session/login.

Request Body

None.

Success Responses

Status 200

Parameter Name Data Type Description
success Boolean A value of “true” indicates that the device group was deleted successfully.

Example Success Response

{
  "success": true
}

Failure Responses

Status 400

All error messages are returned in this format:

{
  "errorCode": "error code string",
  "errorMessage": "error message string"
}

Error codes and messages are listed on the Error Messages page, along with explanations and suggestions for corrective actions.

Try It Out!