Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Add garbage collection to pin rm #2891

Closed
AquiGorka opened this issue Nov 25, 2017 · 5 comments
Closed

Add garbage collection to pin rm #2891

AquiGorka opened this issue Nov 25, 2017 · 5 comments
Assignees

Comments

@AquiGorka
Copy link
Member

Add the method unlink to the files component.

I have read the discussiones (here & here) and understand files are not deleted from the network (if another peer has pinned them, then the files can still be distributed).

We are working on a web project where we add files to the network and we wanted to remove the files to clear some space locally. With this method the files will be unlinked locally.

@daviddias
Copy link
Member

Thank you for formally making the proposal. It just dawned in my mind that what you are looking for is the Pin API and effectively a GC execution. I believe you bring a good point here, having an unlink that does unpin + gc just for that file tree might be useful.

@alanshaw
Copy link
Member

@daviddias hah, I literally just suggested the same thing over at #1101 (comment)

@Stebalien what do you think of this proposal? TLDR; add an option to pin rm to immediately garbage collect the unpinned data.

@AquiGorka would you be interested in working on a feature like this?

@alanshaw alanshaw changed the title Add an unlink method to files Add garbage collection to pin rm Jan 23, 2019
@AquiGorka
Copy link
Member Author

@alanshaw interested? hell yeah! but I cannot commit to it :( - too much on my plate currently.

@alanshaw
Copy link
Member

alanshaw commented Feb 6, 2019

No worries, thanks for letting us know :)

@achingbrain achingbrain transferred this issue from ipfs-inactive/interface-js-ipfs-core Mar 10, 2020
@SgtPooki SgtPooki moved this to 🥞 Todo in js-ipfs deprecation May 17, 2023
@achingbrain
Copy link
Member

js-ipfs is being deprecated in favor of Helia. You can #4336 and read the migration guide.

This is not implemented in Helia directly, but garbage collection is much, much, (much) faster than in js-IPFS so it's not such a huge deal to run this after removing pins.

This could be an option though, please open an issue against Helia if it would still be useful.

@github-project-automation github-project-automation bot moved this from 🥞 Todo to ✅ Done in js-ipfs deprecation Jun 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Status: Done
Development

No branches or pull requests

4 participants