Abolfazl karimian

07/03/2023, 3:07 PM
Hi everyone I have an issue removing delta_log files physically from my lake. My code is:
delta_table = DeltaTable.forPath(session , path)
delta_table.logRetentionDuration = "interval 10 days"
delta.deletedFileRetentionDuration = "interval 2 days"
delta_table.deletes( col("date") < "specified_day" )
session.sql("vacuum delta.path")
and it gets executed every day but log files are not deleted after 20 days. do you have any idea where am i wrong in deleting delta logs?