RedisQueue.clear() method
Deletes this queue's message list and its delayed-message set from redis.
Signature:
clear(): Promise<RedisQueue>;
Returns:
Promise<RedisQueue>
this queue instance
Remarks
A no-op that resolves successfully when the queue has no writer connection. In-flight messages held in worker keys under IMQOptions.safeDelivery are not removed and may be re-queued by the watcher after their lease expires, so this does not guarantee the queue stays empty. Errors are logged rather than thrown, so success cannot be inferred from a resolved promise.
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.