Skip to content
TimescaleDB - Timeseries database for PostgreSQL Docs
  • Timescale.com
  • Try for free
Get started
Create your first Timescale service
Try the key Timescale features
Start coding with Timescale
About Timescale products
Timescale architecture for real-time analytics
Pricing plans and account management
Changelog
Use Timescale
Hypertables
Hypercore
Continuous aggregates
Tutorials
Integrations
API Reference
Hypertables & chunks
Hypercore
Continuous aggregates
Data retention
Jobs and automation
add_job
alter_job
delete_job
run_job
Hyperfunctions
Informational views
Configuration
Administration Functions
API Reference Tag Overview
Compression (Old API, replaced by Hypercore)
Distributed hypertables (Sunsetted v2.14.x)
Migrate and sync data to Timescale Cloud
AI and Vector: pgai on Timescale
Other deployment options
Find a docs page
TimescaleDB API referenceJobs

delete_job()

CommunityCommunity functions are available under Timescale Community Edition. Click to learn more.

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.

Required arguments

NameTypeDescription
job_idINTEGERTimescaleDB background job id

Sample usage

Delete the job with the job id 1000:

SELECT delete_job(1000);

Keywords

jobsdelete

Found an issue on this page?Report an issue or Edit this page in GitHub.

Previousalter_jobNextrun_job

Related Content

Jobs
Timescale Cloud API reference for jobs. Includes SQL functions for adding, altering, deleting, and running a job
add_job()
Add a job to run a function or procedure automatically
run_job()
Manually run a job
alter_job()
Alter a job that is scheduled to run automatically
timescaledb_information.jobs
Get information about all jobs registered with the automatic scheduler
timescaledb_information.job_stats
Get information and statistics about automatically run jobs