# IMessageQueue.unsubscribe() method · @imqueue/core

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

Closes the subscription channel and drops every handler registered through [IMessageQueue.subscribe()](https://imqueue.org/api/core/latest/core.imessagequeue.subscribe/), resetting the instance so a later subscription may use a different channel name.

**Signature:**

```typescript
unsubscribe(): Promise<void>;
```
**Returns:**

Promise<void>

## Remarks

A no-op when no subscription exists, and it never rejects — teardown failures are only logged. There is no way to remove an individual handler.

