JobStoreSupportRemoveTrigger Method (TriggerKey, CancellationToken)

Quartz.NET 3.0 API Documentation
Remove (delete) the ITrigger with the given name.

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

C#
public Task<bool> RemoveTrigger(
	TriggerKey triggerKey,
	CancellationToken cancellationToken = null
)

Parameters

triggerKey
Type: QuartzTriggerKey
The key identifying the trigger.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
The cancellation instruction.

Return Value

Type: TaskBoolean
if a ITrigger with the given name & group was found and removed from the store.

Implements

IJobStoreRemoveTrigger(TriggerKey, CancellationToken)
Remarks

If removal of the ITrigger results in an empty group, the group should be removed from the IJobStore's list of known group names.

If removal of the ITrigger results in an 'orphaned' IJob that is not 'durable', then the IJob should be deleted also.

See Also

Reference