views:

46

answers:

1

Hi all, I need a way to allow administrators to delete a job in Quartz.NET. Are there any built in methods for the JobDetail class that allow me delete the job and all associated triggers?

+1  A: 

you have to delete the job via the scheduler.

// First we must get a reference to a scheduler
ISchedulerFactory sf = new StdSchedulerFactory(properties);
IScheduler sched = sf.GetScheduler();

sched.DeleteJob(JobName, JobGroup);
Paul U