Push Device Registration (DELETE)

Deletes the device with the device ID and application ID.

Roles

Users in the following roles are authorized to perform this operation:

  • worklightadmin
  • worklightdeployer
  • worklightmonitor
  • worklightoperator

Method

DELETE

Path

/management-apis/1.0/runtimes/runtime-name/notifications/applications/application-name/devices/device-id

Example

https://www.example.com/worklightadmin/management-apis/1.0/runtimes/myruntime/notifications/applications/myapplication/devices/12345-6789?locale=de_DE

Path Parameters

runtime-name
The name of the runtime. This is the context root of the runtime web application, without the leading slash.
application-name
The name of the application.
device-id
The device id.

Query Parameters

Query parameters are optional.

locale
The locale used for error messages.

Produces

application/json, application/xml, text/xml

Response

Deletes the device with the device ID and application ID.

JSON Example

{
  "productVersion" : {
    "productVersion" : "7.0.0",
  },
  "project" : {
    "name" : "PushNotifications",
  },
  "status" : "Success",
  "type" : "REMOVE_DEVICE",
}

XML Example

<?xml version="1.0" encoding="UTF-8"?>
<deleteDevice
  status="Success"
  type="REMOVE_DEVICE">
  <productVersion productVersion="7.0.0"/>
  <project name="PushNotifications"/>
</deleteDevice>

Response Properties

The response has the following properties:

productVersion
The exact product version.
project
Project name.
status
The device is deleted successfully.
type
Transaction type.

The productVersion has the following properties:

productVersion
The exact product version

The project has the following properties:

name
Name of the project

Errors

403
The user is not authorized to call this service.
404
The corresponding runtime is not found or not running.
500
An internal error occurred.