# Loki Manual Log Retention or Log Deleting

**URL:** <https://community.grafana.com/t/loki-manual-log-retention-or-log-deleting/123476>\
**Category:** Grafana Loki\
**Tags:** loki\
**Created:** [June 7, 2024, 9:28am UTC](https://community.grafana.com/t/loki-manual-log-retention-or-log-deleting/123476 "2024-06-07T09:28:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![meteccinar](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@meteccinar](https://community.grafana.com/u/meteccinar)\
**Post date:** [June 7, 2024, 9:28am UTC](https://community.grafana.com/t/loki-manual-log-retention-or-log-deleting/123476/1 "2024-06-07T09:28:17Z")

</div>

Hi everyone, we deployed Grafana, Loki, Promtail in a K8s cluster. We store Loki chunks in a persistence volume. I searched, log retention period is minimum 24h. How to delete newer logs before 24h period.Is it possible ? or Is it possible to do it in less than 24h ?

The other question, will there be a problem if I delete any chunk manually?

Thanks in advance for answers.

---

<div class="post-metadata">

**Author:** ![tonyswumac](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/tonyswumac/32/22401_2.png) [@tonyswumac](https://community.grafana.com/u/tonyswumac)\
**Post date:** [June 7, 2024, 10:46pm UTC](https://community.grafana.com/t/loki-manual-log-retention-or-log-deleting/123476/2 "2024-06-07T22:46:21Z")

</div>

The recommended period for index is 24h. I would not recommend deleting chunks before 24h.

And no, you probably don’t want to remove chunks manually. You’ll get errors from querier.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/grafana/original/2X/e/ef5308cc58c9e5a13187b5012eb99f406928462f.png) [@system](https://community.grafana.com/u/system)\
**Post date:** [June 7, 2025, 10:46pm UTC](https://community.grafana.com/t/loki-manual-log-retention-or-log-deleting/123476/3 "2025-06-07T22:46:31Z")

</div>

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
