SmartDevicesManager.batchDelete(keys: string[])

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

Description

Delete device instances for the specified list of keys in the multi-device manager. Internally calls delete({ key }) for each key, automatically destroying instances and cleaning up internal mappings.

Parameters

ParameterTypeRequiredDescription
keysstring[]YesList of device instance keys

Return Value

Type: void
void

Examples

Delete devices in bulk

deviceManager.batchDelete(['lamp1', 'lamp2']);