ISchedulerDeleteJobs Method

Quartz.NET 3.0 API Documentation
Delete the identified jobs from the Scheduler - and any associated ITriggers.

Namespace:  Quartz
Assembly:  Quartz (in Quartz.dll) Version: 3.0.0
Syntax

C#
Task<bool> DeleteJobs(
	IReadOnlyCollection<JobKey> jobKeys,
	CancellationToken cancellationToken = null
)

Parameters

jobKeys
Type: System.Collections.GenericIReadOnlyCollectionJobKey

[Missing <param name="jobKeys"/> documentation for "M:Quartz.IScheduler.DeleteJobs(System.Collections.Generic.IReadOnlyCollection{Quartz.JobKey},System.Threading.CancellationToken)"]

cancellationToken (Optional)
Type: System.ThreadingCancellationToken

[Missing <param name="cancellationToken"/> documentation for "M:Quartz.IScheduler.DeleteJobs(System.Collections.Generic.IReadOnlyCollection{Quartz.JobKey},System.Threading.CancellationToken)"]

Return Value

Type: TaskBoolean
true if all of the Jobs were found and deleted, false if one or more were not deleted.
Remarks

Note that while this bulk operation is likely more efficient than invoking DeleteJob(JobKey, CancellationToken) several times, it may have the adverse affect of holding data locks for a single long duration of time (rather than lots of small durations of time).

See Also

Reference