You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: deleting_job.rb
    path of file: ./repos/coursemology2/app/jobs/course/assessment/submission
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
class Course::Assessment::Submission::DeletingJob < ApplicationJob
  include TrackableJob
  include Rails.application.routes.url_helpers

  protected

  def perform_tracked(deleter, submission_ids, assessment)
    instance = Course.unscoped { assessment.course.instance }
    ActsAsTenant.with_tenant(instance) do
      submissions = assessment.submissions.find(submission_ids)
  
    
  def delete_submission(assessment, submissions, deleter)
    User.with_stamper(deleter) do
      Course::Assessment::Submission.transaction do
        reset_question_bundle_assignments(assessment, submissions) if assessment.randomization == 'prepared'

        creator_ids = []
        submissions.each do |submission|
          submission.destroy!
          creator_ids << submission.creator_id
        end

        Course::Assessment::Submission::MonitoringService.destroy_all_by(assessment, creator_ids)
      end
    end
  end