Click or drag to resize
BackgroundJobDelete Method (String, String)
Changes state of a job with the specified jobId to the DeletedState. State change is only performed if current job state is equal to the fromState value.

Namespace: Hangfire
Assembly: Hangfire.Core (in Hangfire.Core.dll) Version:
public static bool Delete(
	[NotNullAttribute] string jobId,
	[CanBeNullAttribute] string fromState


Type: SystemString
Identifier of job, whose state is being changed.
Type: SystemString
Current state assertion, or null if unneeded.

Return Value

Type: Boolean
True, if state change succeeded, otherwise false.
See Also