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

why isn't there an ipfs rm command? #869

Closed
anarcat opened this issue Mar 7, 2015 · 3 comments
Closed

why isn't there an ipfs rm command? #869

anarcat opened this issue Mar 7, 2015 · 3 comments
Labels
topic/commands Topic commands topic/docs-ipfs Topic docs-ipfs

Comments

@anarcat
Copy link
Contributor

anarcat commented Mar 7, 2015

i just ran ipfs add <tons of files>. tons of stuff ended up in my local data store. i want to remove it. like now. where's the ipfs rm <tons of files>?

assuming that's the only thing i did, can i rm -rf $IPFS_DIR/datastore? (seems that no: #245).

i know about the pin command set, but the semantics are confusing to me (and others, #590).

thanks

@jbenet jbenet added the topic/commands Topic commands label Mar 28, 2015
@insanity54
Copy link

First time user here. I'm also confused on this. There is a way to add, but where is the remove? Is unpinning what I want? From the pin example I see add automatically creates a recursive pin. It must do something else besides pinning. I thought I'd figure it out from the code but it's greek to me, what a strange language, looks fun, maybe I'll learn.

@whyrusleeping
Copy link
Member

We need more documentation around this operation, but the current method of removing content from your local datastore is to unpin it, then run an ipfs repo gc

@whyrusleeping whyrusleeping added the topic/docs-ipfs Topic docs-ipfs label Apr 5, 2015
@whyrusleeping
Copy link
Member

ipfs rm would be a somewhat misleading command, you could do ipfs add <file that already exists elsewhere on the network>, ipfs rm <that> and then still ipfs cat <that> and it would reappear. What really needs to be done here is not ipfs rm but better pinning semantics (maybe get rid of pinning (see the end of #257 and also in #590)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/commands Topic commands topic/docs-ipfs Topic docs-ipfs
Projects
None yet
Development

No branches or pull requests

4 participants