How to remove all hangfire recurring jobs on startup?
<p>I am looking at using Hangfire as a job scheduler for recurring jobs.  So configuring them is simple with <code>AddOrUpdate</code>, but then how do i delete it? I don't want to pollute my code with <code>RecurringJob.RemoveIfExists()</code> when that job has been deleted and then have to remember to delete it later.</p>

<p>Is there a way to get a list of all recurring jobs and delete them when the server starts and so my code will re add them in every time?  If not, if there a better way?</p>

<p>e.g.</p>

<p>Application version 1: Added new Hangfire recurring job <em><code>Do something 1</code></em></p>

<p>Application version 2: Added new Hangfire recurring jobs <em><code>Do something 2</code></em> and <em><code>Do Something 3</code></em></p>

<p>Application version 3: Removed Hangfire recurring job <em><code>Do something 2</code></em></p>

<p><strong>Problem:</strong> the job will still exist on the server with error "Could not load type..."  and needs to be deleted.</p>