ISchedulerUnscheduleJobs Method

Quartz.NET 3.0 API Documentation
Remove all of the indicated ITriggers from the scheduler.

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

C#
Task<bool> UnscheduleJobs(
	IReadOnlyCollection<TriggerKey> triggerKeys,
	CancellationToken cancellationToken = null
)

Parameters

triggerKeys
Type: System.Collections.GenericIReadOnlyCollectionTriggerKey

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

cancellationToken (Optional)
Type: System.ThreadingCancellationToken

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

Return Value

Type: TaskBoolean

[Missing <returns> documentation for "M:Quartz.IScheduler.UnscheduleJobs(System.Collections.Generic.IReadOnlyCollection{Quartz.TriggerKey},System.Threading.CancellationToken)"]

Remarks

If the related job does not have any other triggers, and the job is not durable, then the job will also be deleted.

Note that while this bulk operation is likely more efficient than invoking UnscheduleJob(TriggerKey, 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