deleteDevice

abstract fun deleteDevice(deviceId: String, listener: RainbowListener<Unit, Unit>)

Deletes an AlertDevice, removing its ability to receive CAP-based alerts.

This method unregisters the specified device, meaning it will no longer receive any emergency alerts.

Parameters

deviceId

The unique identifier of the AlertDevice to be deleted.

listener

A RainbowListener that will confirm success on deletion, or an error if the operation fails.