Add workspace maintenance and cleanup blog - #97
Open
Amitkpdatabricks wants to merge 2 commits into
Open
Conversation
DAB-based workspace cleanup automation with two approaches: 1. API-driven cleanup (jobs, dashboards, vector search indexes) 2. System table-driven cleanup (billing, compute, query history) Includes structured logging to Delta table, Lakeview dashboard queries, per-environment config (dev/stage/prod), and dry-run mode. Blog: https://community.databricks.com/t5/technical-blog/databricks-maintenance-and-cleanup-visualise-clean-and-log-with/ba-p/135657 Co-authored-by: Isaac
- databricks.yml: replace real workspace host with a placeholder - 00_cleanup_logger: default catalog maintenance->finops; drop CREATE CATALOG - 04_system_table_analysis: qualify warehouse_id as compute.warehouse_id in system.query.history to fix the aggregation No secrets, emails, personal names, or real hostnames remain in the project. Co-authored-by: Isaac
Amitkpdatabricks
requested review from
QuentinAmbard,
alanreese-dbrx,
alexott,
anupkalburgi,
kwulffert23,
matthewmoorcroft and
srinivasadmala
as code owners
July 31, 2026 10:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds the Databricks Workspace Cleanup blog: an automated workspace-maintenance
solution using Databricks Asset Bundles that cleans up unused jobs, dashboards,
vector search indexes, and clusters, with full audit logging and a Lakeview
dashboard.
Contents:
README.md(blog write-up)databricks.yml(DAB bundle + cleanup workflow)notebooks/00-05(API-driven + system-table-driven cleanup, structured logging)config/(toggles + retention thresholds)dashboards/cleanup_dashboard.sqlTwo approaches
system.billing.usage,system.compute.clusters,system.lakeflow.job_run_timeline,system.query.historyto find resources costing money but delivering no valueEvery action (deleted / skipped / flagged) is logged to a Delta table for auditability.
Notes
This pull request and its description were written by Isaac.