---
name: "SmartDevicesManager.batchDelete"
mode: "api"
versionRequirements:
  - { name: "@ray-js/panel-sdk", version: "1.16.0" }
title: "batchDelete"
---

## SmartDevicesManager.batchDelete

> [VERSION] @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

`Params`

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `keys` | `string[]` | Yes | List of device instance keys |

### Return Value

None


### Examples

#### Delete devices in bulk

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