public boolean deleteJob (final JobKey jobKey) throws SchedulerException
  {
    validateState ();

    boolean result = false;

    final ICommonsList <? extends ITrigger> triggers = getTriggersOfJob (jobKey);
    for (final ITrigger trigger : triggers)
    {
      if (!unscheduleJob (trigger.getKey ()))
      {
        final StringBuilder sb = new StringBuilder ().append ("Unable to unschedule trigger [")
                                                     .append (trigger.getKey ())
                                                     .append ("] while deleting job [")
                                                     .append (jobKey)
                                                     .append ("]");
        throw new SchedulerException (sb.toString ());
      }
      result = true;
    }

    result = m_aResources.getJobStore ().removeJob (jobKey) || result;
    if (result)
    {
      notifySchedulerThread (0L);
      notifySchedulerListenersJobDeleted (jobKey);
    }
    return result;
  }
public boolean deleteJob ( final JobKey jobKey ) throws SchedulerException { validateState ( ) ; boolean result = false ; final ICommonsList < ? extends ITrigger > triggers = getTriggersOfJob ( jobKey ) ; for ( final ITrigger trigger : triggers ) { if ( ! unscheduleJob ( trigger . getKey ( ) ) ) { final StringBuilder sb = new StringBuilder ( ) . append ( "Unable to unschedule trigger [" ) . append ( trigger . getKey ( ) ) . append ( "] while deleting job [" ) . append ( jobKey ) . append ( "]" ) ; throw new SchedulerException ( sb . toString ( ) ) ; } result = true ; } result = m_aResources . getJobStore ( ) . removeJob ( jobKey ) || result ; if ( result ) { notifySchedulerThread ( 0L ) ; notifySchedulerListenersJobDeleted ( jobKey ) ; } return result ; }
<p>
Delete the identified <code>Job</code> from the Scheduler - and any
associated <code>Trigger</code>s.
</p>

@return true if the Job was found and deleted.
@throws SchedulerException
if there is an internal Scheduler error.