Use this API to remove unneeded devices from an account.
thingspace_oauth VZ-M2M-Token In: header
M2M Session Token (How to generate an M2M session token?)
In: header
application/json
Devices to delete.
TypeScript Definitions
Use the request body type in TypeScript.
Request to delete a device request.
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." }]{ "errorCode": "error code string", "errorMessage": "error message string"}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.
The Verizon billing account that the device group belongs to. An account name is usually numeric, and must include any leading zeros.