Posts Learn Components Snippets Categories Tags About

Deleting Laravel Redis Queue Jobs

Learn how Laravel redis queue jobs can be deleted

9 months ago

5 mins read


There are several ways to delete Laravel Redis queue jobs and below are the available options.

Option 1 - Laravel Command

The first way to clear a Redis queue is to use the artisan queue clear:command and this is the easiest you can do. Just open up the terminal and type the command below.
php artisan queue:clear [connection] [queue]
This command also works with other queue types such as a database.

Option 2 - Redis CLI

The second way is to use the Redis command and you can access it by typing it below.
once you are in Redis CLI, just run the command below.
This will clear all of your Redis cached.

Option 3 - Laravel Facade

Thirdly, If you want to use Laravel facade then you can create a route closure or console command to run the Redis command.
use Redis;

BONUS: If you want then you can make use of Laravel tinker.
php artisan tinker
After that run the command the flushdb command by passing it to the method parameters.
Above are some of the ways to clear out your Redis cache, there are other ways but those 3 ways above is the most common one and proven tested.

Thank you for reading the tutorial and I hope you managed to learn something. Do comment below to start the discussion of this topic. Cheers 🍻

Load comments for Deleting Laravel Redis Queue Jobs


PostSrc Code Snippets

Learn new snippets today, level up your Laravel, Alpine JS, Vue JS, Tailwind CSS skills and more.

Learn New Snippets

Authored by

PostSrc poster


Full stack developer mainly focusing on the front end side of the web. The main author of PostSrc and loves writing tutorial and guides online.


PostSrc Code Components

Collection of Tailwind CSS components for everyone to use. Browse all of the components that's right for your project.

View Components