
Answer-first summary for fast verification
Answer: SET spark.databricks.delta.retentionDurationCheck.enabled = false
By default, the `VACUUM` command in Databricks prevents the deletion of files less than 7 days old to ensure no long-running operations are referencing them. If you're certain no operations (like insert, upsert, delete, or optimize) are being performed on the table, you can disable this safety check by setting `spark.databricks.delta.retentionDurationCheck.enabled` to false. [Learn More: Safety check for VACUUM command in Databricks](https://docs.databricks.com/delta/optimizations/vacuum.html)
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
What configuration property must you set in Databricks to allow the deletion of files for a Delta table that are less than 7 days old?
A
SET spark.databricks.delta.retentionDurationFlag.enabled = true
B
SET spark.databricks.delta.retentionDurationCheck.enabled = false
C
SET spark.databricks.delta.retentionDurationConstraint.enabled = true
D
SET spark.databricks.delta.retentionDurationFlag.enabled = false
E
SET spark.databricks.delta.retentionDurationCheck.enabled = true
No comments yet.