DROP JOB deletes a SQL job’s schedule. It stops future triggers and preserves run records.

​
Syntax

DROP JOB [ IF EXISTS ] <name>;

​
Parameters

ParameterDescription
<name>SQL identifier of the SQL job to drop.
IF EXISTSSucceeds and returns no rows if the named job is missing.

​
Return values

The command returns one row describing the deleted schedule with the columns of chalk.jobs.

​
Permissions

Dropping a SQL job requires cron.read, cron.create, workflow.read, and workflow.manage in the environment.

​
Example

Drop the job if it exists.

DROP JOB IF EXISTS morning_report;

​
See also