capabilities.work

Clean Up the Latest Completed Job Run

A 3-step recipe with Azure Databricks. We can help you get access.

Recipe · 3 steps

Clean Up the Latest Completed Job Run

Delete a job's most recent completed run after confirming it ended.

  1. List the completed runs for the job, ordered newest first, and capture the run_id of the most recent run.
  2. Read the latest run and confirm its life_cycle_state is TERMINATED before deleting, since active runs cannot be deleted.
  3. Delete the confirmed non-active run, removing it from the job's run history.
What you'll need to have ready
  • token: Databricks personal access token for the Authorization header.
  • jobId: The canonical identifier of the job whose run is cleaned up.
For your developer

Arazzo workflow microsoft-azure-databricks:cleanup-latest-job-run, 3 operations: listJobRuns → getJobRun → deleteJobRun. Specs on APIs.io.