Laravel delete queued jobs using redis horizon artisan command

Option-1: general

php artisan queue:clear [connection] [queue]

Option-2: redis

FLUSHDB
$ redis-cli
127.0.0.1:6379> FLUSHDB
OK
127.0.0.1:6379> exit

Option-3: redis

use Redis;
Redis::command('flushdb');

Option-5: redis

php artisan make:command FlushRedis --command=flush:redis
Redis::command('flushdb');
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