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

## SmartDevicesManager.destroy

> [VERSION] @ray-js/panel-sdk >= 1.16.0

> 💡 Be sure to call destroy() in the useEffect return or componentWillUnmount to avoid lingering global listeners or memory leaks.

### Description

Destroy the multi-device manager: unregister all global event listeners, remove all change subscriptions, and destroy/clean up all device instances and internal mappings.

### Parameters

None


### Return Value

None


### Examples

#### Destroy the device manager

```ts
// Call when the page unmounts or when clearing devices
manager.destroy();
```
