cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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
Honored Contributor III

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.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.