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

How do I delete unreferenced objects in R2? #114

Open
tddschn opened this issue Jan 12, 2024 · 2 comments
Open

How do I delete unreferenced objects in R2? #114

tddschn opened this issue Jan 12, 2024 · 2 comments

Comments

@tddschn
Copy link

tddschn commented Jan 12, 2024

Thanks for making microfeed!

I replaced an old image with a new one, but the old one is still stored in the R2 bucket, is there a convenient way to delete all unreferenced/unused objects in R2?

@wenbinf
Copy link
Member

wenbinf commented Jan 14, 2024

Right now, we don't have an easy way to remove files from R2 that are not being used. But, we may make this easier in the future. We are thinking about creating a new tool to manage microfeed's R2 objects, which will let you delete these files easily, just with one click.

In my own experience, having some unused files in R2 is not a big problem. It does not happen very often with my microfeed instances (10+).

@tddschn
Copy link
Author

tddschn commented Jan 14, 2024

Thank you for your reply Wenbin!

Maybe we can expose a settings option that let user decide if they want the replaced images stored in buckets or gone?

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