How To Delete A Job From A Queue In Sidekiq

queue = Sidekiq::Queue.new("mailer")

queue.each do |job|
  job.klass
  job.args
  job.delete if job.jid == 'abcdef1234567890'
end

Subscribe to My Newsletter

The latest programming-related news, articles and resources - sent to your inbox monthly. Unsubscribe anytime.