# How to delete .monitoring-es-7-mb-\* indices automatically after period of time?

**URL:** https://discuss.elastic.co/t/how-to-delete-monitoring-es-7-mb-indices-automatically-after-period-of-time/220194
**Category:** Beats
**Tags:** metricbeat
**Created:** [February 20, 2020, 1:20pm UTC](https://discuss.elastic.co/t/how-to-delete-monitoring-es-7-mb-indices-automatically-after-period-of-time/220194 "2020-02-20T13:20:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![elk51211](https://avatars.discourse-cdn.com/v4/letter/e/ccd318/32.png) [@elk51211](https://discuss.elastic.co/u/elk51211)
#### Post date: [February 20, 2020, 1:20pm UTC](https://discuss.elastic.co/t/how-to-delete-monitoring-es-7-mb-indices-automatically-after-period-of-time/220194/1 "2020-02-20T13:20:51Z")

</div>

How to delete .monitoring-es-7-mb-\* indices automatically after period of time? Is there a way to assign a index lifecycle policy to the monitoring in the metricbeat.yaml file?

---

<div class="post-metadata">

### Author: ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)
#### Post date: [February 21, 2020, 10:46pm UTC](https://discuss.elastic.co/t/how-to-delete-monitoring-es-7-mb-indices-automatically-after-period-of-time/220194/2 "2020-02-21T22:46:10Z")

</div>

Hi, how many days worth of such indices are you seeing? Would you mind posting the results of these two API calls?

- `GET _cat/indices/.monitoring*mb*`
- `GET _license?filter_path=license.type,license.status`

---

<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: [March 20, 2020, 11:00pm UTC](https://discuss.elastic.co/t/how-to-delete-monitoring-es-7-mb-indices-automatically-after-period-of-time/220194/3 "2020-03-20T23:00:27Z")

</div>

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