[Feature request] Function to remove all jobs from Queue including Repeatable
See original GitHub issueWith active development very often Queues accumulate many test jobs, especially when experimenting with delayed and repeatable jobs. But I can’t find the easy way to cleanup the Queue (excluding manual removing from Redis), to remove all jobs from Queue, including delayed and repeatable.
At now I see the drain() and clean() functions, but they didn’t remove the repeatable jobs.
Also exists the removeRepeatable() and removeRepeatableByKey(), but we need to know the name+options or key of each job to delete.
As result, there is not so easy to “cleanup” the queue, to start from scratch.
Will be good to have some function like cleanAll() or deleteQueue() to make “full cleanup” of named Queue, for remove all records about it jobs in database for this Queue, including delayed, repeatable, finished, etc.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)

Top Related StackOverflow Question
🎉 This issue has been resolved in version 1.15.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
I will prioritize this up since it is a common request!.