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.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group