cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Auto-deletion of unused jobs

Anonymous
Not applicable

Is there a setting that will auto-cleanup/delete jobs that are of a certain age (say 90 days old for example)?

1 REPLY 1

Ryan_Chynoweth
Esteemed Contributor

It is not available natively in Databricks. But you can write an administration script that analyzes your jobs data and automatically cleans up the older jobs as needed. It would be easiest to do this with the jobs API.

  1. List your jobs to get all the job ids
  2. For each job id you would could either get the latest job runs to see if there are any jobs that don't have any runs OR you would use the created datetime in the job data to delete old data.

Please note that job runs are only stored for 60 days.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now