# HowTo Reset my ipfs storage? go-ipfs CLI and Companion IPFS doesn't show same data

**URL:** <https://discuss.ipfs.tech/t/howto-reset-my-ipfs-storage-go-ipfs-cli-and-companion-ipfs-doesnt-show-same-data/7203>\
**Category:** Help\
**Tags:** files\
**Created:** [February 6, 2020, 3:37am UTC](https://discuss.ipfs.tech/t/howto-reset-my-ipfs-storage-go-ipfs-cli-and-companion-ipfs-doesnt-show-same-data/7203 "2020-02-06T03:37:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![qo-op](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/qo-op/32/1773_2.png) [@qo-op](https://discuss.ipfs.tech/u/qo-op)\
**Post date:** [February 6, 2020, 3:37am UTC](https://discuss.ipfs.tech/t/howto-reset-my-ipfs-storage-go-ipfs-cli-and-companion-ipfs-doesnt-show-same-data/7203/1 "2020-02-06T03:37:12Z")

</div>

Wishing to reset my ipfs storage, I used:

```auto
ipfs pin ls -q --type recursive | xargs ipfs pin rm

```

When I open web companion in firefox  
[http://127.0.0.1:8080/ipfs/Qmexhq2sBHnXQbvyP2GfUdbnY7HCagH2Mw5vUNSBn2nxip/#/](http://127.0.0.1:8080/ipfs/Qmexhq2sBHnXQbvyP2GfUdbnY7HCagH2Mw5vUNSBn2nxip/#/)

It tells I am

```auto
Hosting [164.7 MB of files](http://127.0.0.1:8080/ipfs/Qmexhq2sBHnXQbvyP2GfUdbnY7HCagH2Mw5vUNSBn2nxip/#/files)

```

Should I remove “~/.ipfs/blocks” to empty ?  
What would be the command line for it, hash by hash?

---

<div class="post-metadata">

**Author:** ![RubenKelevra](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/rubenkelevra/32/3390_2.png) [@RubenKelevra](https://discuss.ipfs.tech/u/RubenKelevra)\
**Post date:** [February 6, 2020, 6:55am UTC](https://discuss.ipfs.tech/t/howto-reset-my-ipfs-storage-go-ipfs-cli-and-companion-ipfs-doesnt-show-same-data/7203/2 "2020-02-06T06:55:22Z")

</div>

Files and pins are not the same thing. Files are basically named CIDs which are organized in a folder/file structure.

Do a ‘ipfs files ls /’ to get a listing.of all files you currently hold.

You can remove them with ‘ipfs files rm $path’.

Also make sure to run a ‘ipfs repo gc’ afterwards. Removing files or unpin CIDs doesn’t actually remove them from your storage. You might still provide those files from your cache to the network, if you haven’t run a gc.

It just releases the “lock” on them, so if you’re running low on storage, the garbage collector is able to purge them.

To see how much is currently in your cache, take a look at ‘ipfs repo stat --human’. The NumObjects and RepoSize will show you how much there’s in the cache which might be pinned/added as file or not.
