# HttpProtect.destroy() method · @imqueue/http-protect

Source: https://imqueue.org/api/http-protect/latest/http-protect.httpprotect.destroy/
Published: 2026-08-01
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/http-protect 3.0.1 — generated reference, not hand-written

Disconnects the Redis client and drops it.

**Signature:**

```typescript
destroy(): void;
```
**Returns:**

void

## Remarks

Disconnects whichever client this instance holds — including one passed in as [HttpProtectOptions.redis](https://imqueue.org/api/http-protect/latest/http-protect.httpprotectoptions.redis/), which the rest of your application may still be using. Share a client only if you also control who shuts it down.

Counters and bans are unaffected: they live in Redis and outlive the instance. Afterwards [HttpProtect.verify()](https://imqueue.org/api/http-protect/latest/http-protect.httpprotect.verify/) throws for any non-exempt address until [HttpProtect.connect()](https://imqueue.org/api/http-protect/latest/http-protect.httpprotect.connect/) is called again.

