# IMQService.destroy() method · @imqueue/rpc

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

Removes this instance's signal handlers, then unsubscribes and destroys the underlying queue.

**Signature:**

```typescript
destroy(): Promise<void>;
```
**Returns:**

Promise<void>

## Remarks

It does not close the metrics server — if [IMQMetricsServerOptions.enabled](https://imqueue.org/api/rpc/latest/rpc.imqmetricsserveroptions.enabled/) was set, close `service.metricsServer` yourself, otherwise the open listener keeps the process alive. In-flight requests are not awaited.

