-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Conversation
License: MIT Signed-off-by: Jorge Ludlow <gorka@aquigorka.com>
a1b61ad
to
acd355d
Compare
Hi @AquiGorka, please create a proposal to add this method at spec repo by creating an issue https://github.com/ipfs/interface-ipfs-core/issues |
as a note, #1045 needs to be shipped first |
Apologies for the long pause! Would it be more appropriate to add this as an option to
Did that issue ever get created? Can I get a link? |
link => self._ipldResolver.bs.delete(new CID(link.multihash)), | ||
() => self._ipldResolver.bs.delete(cid, callback) | ||
) | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will delete 1 level of links, but if the links have links then they should also be deleted as per pin rm --recursive
.
|
Closing in favor of https://github.com/ipfs/interface-js-ipfs-core/issues/176 |
refactor: use fetch for ipfs.cat
Original ref: #1043
This change adds 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 get
unlinked
locally.