Laravel Artisan Queue Command: The queue:flush Command


John Koster

Published on December 7, 2016

The queue:flush command is used to clear the log of failed queue jobs. It accepts no arguments or options and can be called like so:

1# Flush all the failed queue jobs.
2php artisan queue:flush

This command will remove all entries from the failed_jobs database table. It accomplishes this by calling the flush method on the configured Illuminate\Queue\Failed\FailedJobProviderInterface instance (this interface is bound to the key queue.failed in the service container; this returns an instance of Illuminate\Queue\Failed\DatabaseFailedJobProvider by default). The following PHP method call is equivalent:

1// Flush all the failed queue jobs.