title: Destroy entity in Sidekiq worker
body: <p>How can I destroy an entity after some action is performed in Sidekiq's worker?</p>
  
  <p>I have following code which doesn't work (mail is not deleted):</p>
  
  <pre><code>class MailingWorker
    include Sidekiq::Workerdef
  
    def perform(mail_id)
       mail = Mail.find mail_id
       #some logic for sending email
       mail.destroy
    end
  end
  </code></pre>