Device Deletion

The DEVICE_DELETE event is used to notify when a device is removed from an account. It provides real-time updates on device deactivation and removal.

Event Type: DEVICE_DELETE

Trigger Condition

Subscription to the DEVICE_DELETE event is mandatory. This event is triggered in real-time when a device is deleted.

Example Payload

{
  "eventInfo": {
    "actionBy": null
  },
  "messageType": "DEVICE_DELETE",
  "entityName": "5134513411",
  "customerId": 5134,
  "action": "Delete",
  "entityId": "974d04f4-1223-1342-8eab-07be037fb876",
  "time": 1742292425508
}

Reference

Field

Description

eventInfo
JSONObject

The unique Azuga ID of the user who performed the action Example: 15236e28-1111-11e6-9bb5-a7cf79cf4150

messageType
String

Type of message
Example: "DEVICE_DELETE"

entityName
String

Name of Device Example: 1040702337

customerId
Long

The unique Azuga ID of the Customer
Example:26111

action
String

Action Performed Example: Delete

entityId
String,UUID

The unique Azuga ID of the Device. This is automatically generated when the device object is deleted and cannot be altered. Example: 1d28138b-3679-11ef-b858-9f09b511d93a

time
Time Stamp

Time when event is created in milliseconds Example: 1732135845682