How to find and hard delete objects older than n-days in LakeFS? Later it'll be a scheduled job.
How to hard delete objects older than n-days in LakeFS?
292 views Asked by awrow At
1
How to find and hard delete objects older than n-days in LakeFS? Later it'll be a scheduled job.
To do that you should use the Garbage Collection (GC) feature in lakeFS.
Note: This feature cleans objects from the storage only after they are deleted from your branches in lakeFS.
You will need to:
Define GC rules to set your desired retention period.
From the lakeFS UI, go to the repository you would like to hard delete objects from -> Settings -> Retention, and define the GC rule for each branch under the repository. For example -
Run the GC Spark job that does the actual cleanup, with -