Device Management

Deletes up to 200 deactive devices.

POST
/m2m/v1/devices/actions/delete

Use this API to remove unneeded devices from an account.

Authorization

thingspace_oauth VZ-M2M-Token
AuthorizationBearer <token>

This is the ThingSpace token, from Credentials and Tokens is used

In: header

VZ-M2M-Token<token>

M2M Session Token (How to generate an M2M session token?)

In: header

Request Body

application/json

Devices to delete.

Devices to delete.

devicesToDelete*array<>

A list of up to 100 devices that you want to delete, specified by device identifier. You only need to provide one identifier per device.

accountName?string

The Verizon billing account that the device group belongs to. An account name is usually numeric, and must include any leading zeros.

Response Body

application/json

application/json

curl -X POST "https://example.com/m2m/v1/devices/actions/delete" \  -H "Content-Type: application/json" \  -d '{    "devicesToDelete": [      {        "deviceIds": [          {            "id": "09005470263",            "kind": "esn"          }        ]      },      {        "deviceIds": [          {            "id": "85000022411113460014",            "kind": "iccid"          }        ]      },      {        "deviceIds": [          {            "id": "85000022412313460016",            "kind": "iccid"          }        ]      }    ]  }'
[  {    "deviceIds": {      "id": "09005470263",      "kind": "esn"    },    "status": "Success"  },  {    "deviceIds": {      "id": "85000022411113460014",      "kind": "iccid"    },    "status": "Success"  },  {    "deviceIds": [      {        "id": "85000022412313460016",        "kind": "iccid"      },      {        "id": "09005470263",        "kind": "esn"      }    ],    "status": "Failed",    "message": "The device is not in deactive state."  }]