# Deleting old .reporting-\* index

**URL:** <https://discuss.elastic.co/t/deleting-old-reporting-index/273684>\
**Category:** Kibana\
**Tags:** elastic-stack-reporting\
**Created:** [May 21, 2021, 3:42pm UTC](https://discuss.elastic.co/t/deleting-old-reporting-index/273684 "2021-05-21T15:42:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [May 21, 2021, 3:42pm UTC](https://discuss.elastic.co/t/deleting-old-reporting-index/273684/1 "2021-05-21T15:42:48Z")

</div>

Hello,

It seems that the .reporting-\* index are created weekly but are not deleted, it is safe to delete it manually?

When I create a report I delete it using the Kibana UI after the download, so there is no need to keep reports in the cluster.

Since this index does not seems to have an index template I can't apply a lifecycle policy, is there any place where I could configure it to be deleted after one week?

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [May 21, 2021, 5:21pm UTC](https://discuss.elastic.co/t/deleting-old-reporting-index/273684/2 "2021-05-21T17:21:49Z")

</div>

It's a tough question - without the ILM option I can't think of anything other than an external service like curator.

`xpack.reporting.queue.indexInterval` can be used to make fewer indices. Old indices can be deleted if you don't have a need for the report.

@tsullivan do you have any thoughts here?

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [May 26, 2021, 6:08pm UTC](https://discuss.elastic.co/t/deleting-old-reporting-index/273684/3 "2021-05-26T18:08:44Z")

</div>

> [@leandrojmp](#):
>
> it is safe to delete it manually?

Yes, it is safe to delete any `.reporting-*` index, if you no longer need access to the report artifacts it holds.

> [@leandrojmp](#):
>
> Since this index does not seems to have an index template I can't apply a lifecycle policy, is there any place where I could configure it to be deleted after one week?

You can create your own policy for the reporting indices. As you found, the index does not have its own template, but you can create a simple one of your own in **Stack Management \> Index Management \> Templates \> Create Template**

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/6/0658f62906c095050873f83e591e99bafba45fa9.png)

You don't need to add any of your own index settings or mappings.

The second step is to create an ILM policy in **Stack Management \> Index Lifecycle Management**. You can name the policy whatever you want and set up the lifecycle phases as you want. Once the policy is created, you can add it to the index template for Reporting by clicking the **Actions** menu in the ILM table, and then **Add policy to index template**. Then choose the index template you created:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/4/f4b162083c9503ddb9c95ace674dedce5b7318e2.png)

---

<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:** [June 23, 2021, 6:09pm UTC](https://discuss.elastic.co/t/deleting-old-reporting-index/273684/4 "2021-06-23T18:09:09Z")

</div>

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