def on_delete(self, req, resp, session_id, job_id):

        user_id = req.get_header('X-User-ID') or ''

        session_doc = self.db.get_session(user_id=user_id,
                                          session_id=session_id)
        session_doc['jobs'].pop(job_id, None)

        # when replacing, db might raise a VersionConflictEngineException
        self.db.replace_session(user_id=user_id,
                                session_id=session_id,
                                doc=session_doc)
        job_update_doc = {
            'session_id': '',
            'session_tag': 0,
            'job_schedule': {
                'event': 'stop'
            }
        }
        self.db.update_job(user_id=user_id,
                           job_id=job_id,
                           patch_doc=job_update_doc)
        resp.status = falcon.HTTP_204
remove a job from the session
dataset/ETHPy150Open openstack/freezer-api/freezer_api/api/v1/sessions.py/SessionsJob.on_delete