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

Source: https://imqueue.org/api/core/latest/core.redisqueue.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 connection and forgets the channel name together with every handler registered through [RedisQueue.subscribe()](https://imqueue.org/api/core/latest/core.redisqueue.subscribe/).

**Signature:**

```typescript
unsubscribe(): Promise<void>;
```
**Returns:**

Promise<void>

## Remarks

A later [RedisQueue.subscribe()](https://imqueue.org/api/core/latest/core.redisqueue.subscribe/) must register its handlers again, and may use a different channel name. A no-op when the queue was never subscribed, and it never rejects — failures during unsubscribe are logged only. Called automatically by [RedisQueue.destroy()](https://imqueue.org/api/core/latest/core.redisqueue.destroy/).

