# How can i make sure all local data blocks are removed?

**URL:** <https://discuss.ipfs.tech/t/how-can-i-make-sure-all-local-data-blocks-are-removed/9693>\
**Category:** Uncategorized\
**Tags:** go-ipfs\
**Created:** [December 26, 2020, 7:52am UTC](https://discuss.ipfs.tech/t/how-can-i-make-sure-all-local-data-blocks-are-removed/9693 "2020-12-26T07:52:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![krishraghuram](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/krishraghuram/32/4335_2.png) [@krishraghuram](https://discuss.ipfs.tech/u/krishraghuram)\
**Post date:** [December 26, 2020, 7:52am UTC](https://discuss.ipfs.tech/t/how-can-i-make-sure-all-local-data-blocks-are-removed/9693/1 "2020-12-26T07:52:41Z")

</div>

As far as I understand, `ipfs repo gc` removes all blocks, except those that are pinned and/or added by ipfs files api (these are best-effort pinned, according comments on [this](https://github.com/ipfs-inactive/faq/issues/143#issuecomment-231484012) and [this](https://github.com/ipfs/go-ipfs/issues/4675#issuecomment-364302071))

However, even after unpinning all pins, and running ipfs files rm on all files, I still had this one cid locally - `QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn`.  
I was able to verify that its present locally both by checking the output of `ipfs refs local`, and by checking the `$IPFS_PATH/blocks` for the base32 multihash of the cid - `ciqftfeehedf6klbt32bfaglxezl4uwfnwm4lftlmxqbcerz6cmlx3y`.

This cid seems to be the cid for an empty directory, and I’m not sure how its not getting cleaned up by `ipfs repo gc`…?

---

<div class="post-metadata">

**Author:** ![hector](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/hector/32/178_2.png) [@hector](https://discuss.ipfs.tech/u/hector)\
**Post date:** [December 29, 2020, 5:15pm UTC](https://discuss.ipfs.tech/t/how-can-i-make-sure-all-local-data-blocks-are-removed/9693/2 "2020-12-29T17:15:23Z")

</div>

Because having nothing stored in MFS (files-api) is equivalent to having an empty folder.

So the CID for the empty folder is always there.
