https://lakefs.io/ logo
Title
r

Ronnie Ning

12/01/2022, 9:35 PM
Is there any setting in config for sync? For example, if the repo is deleted in LakeFS, it's also removed from the storage.
b

Barak Amar

12/01/2022, 9:42 PM
Currently there is no event/hook triggered on repository delete. Delete the content of the storage namespace associated with the repository will remove the storage usage. But currently lakeFS does not delete this content.
What do you mean in 'sync'?
Does a hook will be enough to capture the functionality you seek?
r

Ronnie Ning

12/01/2022, 10:00 PM
sync
means that content for a given repo is removed from the storage if that repo is deleted in lakefs.
b

Barak Amar

12/01/2022, 10:17 PM
without an associate to delete repo, you can use distcp to sync the repository later content to s3 (https://docs.lakefs.io/howto/copying.html#using-distcp) or rclone https://docs.lakefs.io/howto/copying.html#using-rclone. still the operation is not triggered by the delete repository operation.
so for example, we can write a script to sync the data, delete the repository and delete storage namespace when you like to delete repository