Search code examples
ipfs

How do I unpin and remove all IPFS content from my machine?


I've added a bunch of files via ipfs add. How do I unpin and remove all of these at once?


Solution

  • to unpin all added content:

    ipfs pin ls --type recursive | cut -d' ' -f1 | xargs -n1 ipfs pin rm

    then optionally run storage garbage collection to actually remove things:

    ipfs repo gc