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

## SmartDevicesManager.delete

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

`Params`

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `params` | `DeleteDeviceParams` | Yes | Object containing the device key to delete |

### Return Value

None


### Referenced Types

##### `type` DeleteDeviceParams

Parameter type for SmartDevicesManager.delete

| Property | Type | Description |
| --- | --- | --- |
| `key` | `string` | Key of the device instance to delete |


### Examples

#### Delete a single device

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