Skip to content

delete_job()

Delete a job from the automatic scheduler

Community Since 1.2.0

Delete a job registered with the automation framework. This works for jobs as well as policies.

If the job is currently running, the process is terminated.

Delete the job with the job id 1000:

SELECT delete_job(1000);

The syntax is:

SELECT delete_job(
job_id = <job_id>
);
NameTypeDefaultRequiredDescription
job_idINTEGER-TimescaleDB background job id

This function returns void.