# Partd files clutter the /tmp

**URL:** https://dask.discourse.group/t/partd-files-clutter-the-tmp/429
**Category:** Distributed
**Tags:** dask-on-ray
**Created:** [March 2, 2022, 4:16pm UTC](https://dask.discourse.group/t/partd-files-clutter-the-tmp/429 "2022-03-02T16:16:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![billwill](https://avatars.discourse-cdn.com/v4/letter/b/7993a0/32.png) [@billwill](https://dask.discourse.group/u/billwill)
#### Post date: [March 2, 2022, 4:16pm UTC](https://dask.discourse.group/t/partd-files-clutter-the-tmp/429/1 "2022-03-02T16:16:17Z")

</div>

Hi, I am trying to find more information on `xxx.partd` files that are created by Dask in `/tmp` folder. These folders are created in each run and accumulate over time creating unnecessary storage blockage. Unfortunately, I can’t find anything on it in docs or on github. Can I somehow manage them or clean them up automatically? I run Dask on Ray if that changes anything. Appreciate any hints

---

<div class="post-metadata">

### Author: ![scharlottej13](https://yyz1.discourse-cdn.com/flex035/user_avatar/dask.discourse.group/scharlottej13/32/24_2.png) [@scharlottej13](https://dask.discourse.group/u/scharlottej13)
#### Post date: [March 2, 2022, 11:37pm UTC](https://dask.discourse.group/t/partd-files-clutter-the-tmp/429/2 "2022-03-02T23:37:08Z")

</div>

Hi @billwill thanks for the question! Dask uses [partd](https://github.com/dask/partd) during [shuffling](https://docs.dask.org/en/stable/dataframe-groupby.html?highlight=partd#shuffle-on-disk) for dumping intermediate results to disk during larger-than-memory operations on a single machine. The `tmp` directory _should_ be automatically cleaned up. I don’t see any open issues on this either in the Ray or Dask projects, would you mind sharing a bit more on your setup or a [minimal example](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports)?

---

<div class="post-metadata">

### Author: ![mmww](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@mmww](https://dask.discourse.group/u/mmww)
#### Post date: [March 10, 2022, 7:28pm UTC](https://dask.discourse.group/t/partd-files-clutter-the-tmp/429/3 "2022-03-10T19:28:36Z")

</div>

Hi, I encountered recently the same problem with `partd` files. I created an issue on Github, but it seems to be more related to Ray than Dask.  
Link to the issue: [[Bug] [Dask-on-Ray] Partd files are not cleaned automatically · Issue #8787 · dask/dask · GitHub](https://github.com/dask/dask/issues/8787)

---

<div class="post-metadata">

### Author: ![scharlottej13](https://yyz1.discourse-cdn.com/flex035/user_avatar/dask.discourse.group/scharlottej13/32/24_2.png) [@scharlottej13](https://dask.discourse.group/u/scharlottej13)
#### Post date: [March 10, 2022, 8:17pm UTC](https://dask.discourse.group/t/partd-files-clutter-the-tmp/429/4 "2022-03-10T20:17:39Z")

</div>

Thank you @mmww! I also saw you posted this question on the [Ray discourse](https://discuss.ray.io/t/temporary-files-partd/5252), hopefully someone can help solve your problem there!
