Remove files no longer referenced by the Delta table and are older than the retention threshold.
Usage
vacuum(
table,
...,
retention_hours = NULL,
dry_run = TRUE,
enforce_retention_duration = TRUE
)Arguments
- table
A DeltaTable object.
- ...
Additional arguments passed to methods.
- retention_hours
Numeric. Files older than this will be removed. Default is 168 hours (7 days).
- dry_run
Logical. If TRUE, only list files that would be removed.
- enforce_retention_duration
Logical. If FALSE, allow retention less than the default. Use with caution!