Laravel delete queued jobs using redis horizon artisan command

Option-1: general

php artisan queue:clear [connection] [queue]

Option-2: redis

$ redis-cli> FLUSHDB
OK> exit

Option-3: redis

use Redis;

Option-5: redis

php artisan make:command FlushRedis --command=flush:redis
php artisan flush:redis

Option-5: redis + tinker

php artisan tinker;
>>> use Redis;
>>> Redis :: command (‘flushdb’);
php artisan queue:flush

Previous Stories You will Love:



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store