Exago .NET API Documentation
DeleteSchedulerJob Method
Example 
WebReports.Api.Scheduler Namespace > ReportScheduler Class : DeleteSchedulerJob Method
The ID of the job to delete.
If True (default), an exception is thrown if the jobId cannot be found by any of the Scheduler Services. If False, no exception will be thrown if the job cannot be found.
Delete a scheduled job by providing the job's ID. The job will be first stopped and the cache cleared before it is deleted.
Syntax
public void DeleteSchedulerJob( 
   System.string jobId,
   System.bool throwExceptionIfNotFound
)

Parameters

jobId
The ID of the job to delete.
throwExceptionIfNotFound
If True (default), an exception is thrown if the jobId cannot be found by any of the Scheduler Services. If False, no exception will be thrown if the job cannot be found.
Exceptions
ExceptionDescription
An Exception will be thrown if throwExceptionNotFound is true and no Scheduler Service has a job with the requested ID
Example
Delete the schedule named "Employee W-2s". Throw an exception if there is no schedule by that name.
api.ReportScheduler.DeleteSchedulerJob(rs.GetFirstApiReportScheduleInfoByScheduleName("Employee W-2s").jobId,true);
See Also

Reference

ReportScheduler Class
ReportScheduler Members