Aug 3, 2022
To remove existing jobs, you can use the following code:
job = scheduler.add_job(myfunc, 'interval', minutes=2)
job.remove()
Using an explicit job ID:
scheduler.add_job(myfunc, 'interval', minutes=2, id='my_job_id')
scheduler.remove_job('my_job_id')