SmartDevicesManager.delete(params: DeleteDeviceParams)

Requires:
@ray-js/panel-sdk≥1.16.0

Description

Delete a device instance. Removes the instance identified by key from the multi-device manager, automatically calls its destroy() and cleans up internal mappings.

Parameters

ParameterTypeRequiredDescription
YesObject containing the device key to delete

Return Value

Type: void
void

Examples

Delete a single device

manager.delete({ key: 'lamp1' });