Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean the kachery folder #27

Open
yger opened this issue Sep 19, 2020 · 1 comment
Open

Clean the kachery folder #27

yger opened this issue Sep 19, 2020 · 1 comment

Comments

@yger
Copy link
Contributor

yger commented Sep 19, 2020

Is there a way to delete the cache for a specific file in the kachery folder? I mean, this folder is getting bigger and bigger after each download, and instead of deleting everything, is there a way to specifically remove some cached files, but not necessarily all of them?

@magland
Copy link
Collaborator

magland commented Sep 19, 2020

Automatic garbage collection is something we haven't yet tackled (but it's in the plan). Here's one thing you could do... delete every file with size >1GB. The chunks will still be in the cache. That should reduce the space used by about 50%.

Just be very careful with this command!

cd $KACHERY_STORAGE_DIR

# do a dry run first to see which files will be deleted
find -type f -size +1000M

Now once you are sure, add the -delete flag to the previous command. (Making sure you are still in the correct directory!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants