# Ray behavior with deleted log files

**URL:** <https://discuss.ray.io/t/ray-behavior-with-deleted-log-files/14901>\
**Category:** Ray Core\
**Created:** [June 7, 2024, 5:01am UTC](https://discuss.ray.io/t/ray-behavior-with-deleted-log-files/14901 "2024-06-07T05:01:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saumya-saran](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/saumya-saran/32/6204_2.png) [@saumya-saran](https://discuss.ray.io/u/saumya-saran)\
**Post date:** [June 7, 2024, 5:01am UTC](https://discuss.ray.io/t/ray-behavior-with-deleted-log-files/14901/1 "2024-06-07T05:01:17Z")

</div>

**How severe does this issue affect your experience of using Ray?**

- Medium: It contributes to significant difficulty to complete my task, but I can work around it.

I have a long-running instance of Ray on a node with many workers (number of CPUs). Each worker has its own python-core-worker.log file, which have grown quite large in size and are taking ~17GB of disk space.

Based on the documentation, worker logs are not rotated. In order to free up space, I would like to delete some of these files. Would this cause any issues?

Would the log files be recreated as Ray continues to run? What are best-practices for managing these system files?

---

<div class="post-metadata">

**Author:** ![ruisearch42](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/ruisearch42/32/6012_2.png) [@ruisearch42](https://discuss.ray.io/u/ruisearch42)\
**Post date:** [June 11, 2024, 10:22pm UTC](https://discuss.ray.io/t/ray-behavior-with-deleted-log-files/14901/2 "2024-06-11T22:22:45Z")

</div>

I think worker logs (prefix=worker) are not rotated, but core-worker logs (prefix=python-core-worker) are:

> <https://github.com/ray-project/ray/blob/76f5cd4417bf986c7a6d4a6dec213c2bccdaeaf0/python/ray/tests/test_logging.py#L148>

Have you configured log rotation properly? [Configuring Logging — Ray 2.24.0](https://docs.ray.io/en/latest/ray-observability/user-guides/configure-logging.html#log-rotation)
