# Files in \`.ipfs/filestore\` directory

**URL:** <https://discuss.ipfs.tech/t/files-in-ipfs-filestore-directory/17860>\
**Category:** Help\
**Tags:** files\
**Created:** [April 12, 2024, 2:43pm UTC](https://discuss.ipfs.tech/t/files-in-ipfs-filestore-directory/17860 "2024-04-12T14:43:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gkraemer](https://avatars.discourse-cdn.com/v4/letter/g/6de8d8/32.png) [@gkraemer](https://discuss.ipfs.tech/u/gkraemer)\
**Post date:** [April 12, 2024, 2:43pm UTC](https://discuss.ipfs.tech/t/files-in-ipfs-filestore-directory/17860/1 "2024-04-12T14:43:38Z")

</div>

I am using Kubo in docker and found that the ipfs data directory (the one that usually is under `~/.ipfs`) contains a directory `filestore` and inside there is a copy of one of the directories i have pinned. Now I have some data duplicated because I have a copy of the exact same directory somewhere else.

- How did this happen? Under what circumstances does `ipfs` create this directory?
- How do I get rid of the directory? Can I just delete it or will this upset `ipfs`?
- Is there a way to find the location on disk of a CID?

---

<div class="post-metadata">

**Author:** ![gkraemer](https://avatars.discourse-cdn.com/v4/letter/g/6de8d8/32.png) [@gkraemer](https://discuss.ipfs.tech/u/gkraemer)\
**Post date:** [April 12, 2024, 5:17pm UTC](https://discuss.ipfs.tech/t/files-in-ipfs-filestore-directory/17860/2 "2024-04-12T17:17:09Z")

</div>

I found out something: In order to find where a CID in the filestore is in disk you can do

```bash
ipfs filestore ls

```

paths are a bit weird, they start with `filestore` and then I have both directories overlaid (everything under `$ipfs_staging` as well as under `$ipfs_data/filestore`).
