public void removeAllJobs() throws SchedulerException { for (String groupName : quartzScheduler.getJobGroupNames()) { for (JobKey jobKey : quartzScheduler.getJobKeys(GroupMatcher.jobGroupEquals(groupName))) { quartzScheduler.deleteJob(jobKey); } } }
public void removeJob(JobKey jobKey) throws SchedulerException { quartzScheduler.deleteJob(jobKey); }