# Indices full of data

**URL:** <https://discuss.elastic.co/t/indices-full-of-data/308406>\
**Category:** Elasticsearch\
**Created:** [June 28, 2022, 10:36pm UTC](https://discuss.elastic.co/t/indices-full-of-data/308406 "2022-06-28T22:36:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Badr\_Atouhlaten](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badr_atouhlaten/32/106916_2.png) [@Badr\_Atouhlaten](https://discuss.elastic.co/u/Badr_Atouhlaten)\
**Post date:** [June 28, 2022, 10:36pm UTC](https://discuss.elastic.co/t/indices-full-of-data/308406/1 "2022-06-28T22:36:37Z")

</div>

how i can clear the data in .ds-packetbeat-8.2.3-2022.06.21\*] , i want to keep only 3 or 4 days worth of data, this way i can make sure i will not run out of disk space.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 28, 2022, 11:11pm UTC](https://discuss.elastic.co/t/indices-full-of-data/308406/2 "2022-06-28T23:11:53Z")

</div>

Indexes don't really run out of space like that, nodes can though.

However if you are using datastreams, then they use [ILM](https://www.elastic.co/guide/en/elasticsearch/reference/current/index-lifecycle-management.html), and your indices should be being removed automatically.

---

<div class="post-metadata">

**Author:** ![Badr\_Atouhlaten](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badr_atouhlaten/32/106916_2.png) [@Badr\_Atouhlaten](https://discuss.elastic.co/u/Badr_Atouhlaten)\
**Post date:** [June 28, 2022, 11:32pm UTC](https://discuss.elastic.co/t/indices-full-of-data/308406/3 "2022-06-28T23:32:18Z")

</div>

is the Index Lifecycle Policies for how long you can keep the data stream before it will be delete, correct. ?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 28, 2022, 11:35pm UTC](https://discuss.elastic.co/t/indices-full-of-data/308406/4 "2022-06-28T23:35:10Z")

</div>

Correct.

You can check what is being used for it in Kibana - Stack Management \> Index Management.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 26, 2022, 11:35pm UTC](https://discuss.elastic.co/t/indices-full-of-data/308406/5 "2022-07-26T23:35:49Z")

</div>

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