# UDPClusterManager.destroy() method · @imqueue/core

Source: https://imqueue.org/api/core/latest/core.udpclustermanager.destroy/
Published: 2026-08-04
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/core 3.3.2 — generated reference, not hand-written

Stops this manager and releases its share of the broadcast worker.

**Signature:**

```typescript
destroy(): Promise<void>;
```
**Returns:**

Promise<void>

## Remarks

Safe to call more than once. The shared worker is only shut down when this is the last manager using it — otherwise the call just releases this manager's reference and the worker keeps running for the others. Shutdown asks the worker to close its socket and waits up to five seconds for confirmation before terminating the thread.

Process signal handlers installed by this manager are not removed, and registered clusters are not cleared — use [ClusterManager.remove()](https://imqueue.org/api/core/latest/core.clustermanager.remove/) for that, which itself calls this method once the last cluster is gone.

