-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add garbage collection to pin rm #2891
Comments
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. |
@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 @AquiGorka would you be interested in working on a feature like this? |
@alanshaw interested? hell yeah! but I cannot commit to it :( - too much on my plate currently. |
No worries, thanks for letting us know :) |
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. |
Add the method
unlink
to thefiles
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.The text was updated successfully, but these errors were encountered: