ServerScheduledJobs.deleteJobDefinition (Method)

Deletes the specified Job Definition, plus any Scheduled Jobs that were created from it.

Returns:

Void

Arguments:

Name Type Required Description
jobDefinitionID PositiveInteger Required The ID of the job definition to be deleted.
ignoreWarnings Boolean Required Boolean flag which when set indicates that warnings should be ignored. If this value is false, this method throws an error with a warning message.

Context:

License Requirements (none)
Permission Requirements server:ServerAdmin
Deny Context (none)
Require Context AuthoringEnabled
Author Lock  

Error Codes:

Code Error Message
39005 The specified job definition is not a valid $1 level job definition.
39021 The specified job definition is a factory job definition which cannot be modified or deleted.

Notes:

None