5

I'm using database as queue driver in my system. How can I delete a queued job that is stored in my jobs table?

Thanks

Tommy Lee
  • 794
  • 2
  • 11
  • 30

1 Answers1

6

Implement the Illuminate\Queue\InteractsWithQueue trait which gives you access to the delete() method.

More information in the API and in the docs under "Manually accessing the queue".

Shaz MJ
  • 1,785
  • 1
  • 12
  • 25
  • how can i specify which job to delete? is that possible? – Tommy Lee Dec 18 '15 at 07:27
  • 1
    @ShazAmjad I appreciated the link, but the docs weren't enough to clarify for me how I could browse to a specific queued Mailable and then cancel/delete it. If you have ideas, my question is here: https://stackoverflow.com/q/48255735/470749 Thanks. – Ryan Jan 16 '18 at 00:36