# Search and delete indexes older than 1 month

**URL:** https://discuss.elastic.co/t/search-and-delete-indexes-older-than-1-month/224853
**Category:** Kibana
**Created:** [March 24, 2020, 1:35pm UTC](https://discuss.elastic.co/t/search-and-delete-indexes-older-than-1-month/224853 "2020-03-24T13:35:47Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Hamza\_Y](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hamza_y/32/63795_2.png) [@Hamza\_Y](https://discuss.elastic.co/u/Hamza_Y)
#### Post date: [March 24, 2020, 1:35pm UTC](https://discuss.elastic.co/t/search-and-delete-indexes-older-than-1-month/224853/1 "2020-03-24T13:35:47Z")

</div>

In Kibana when i `GET _cat/indices?v` i get the following results:

```
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open timeline-2018.05 HzucsigWR3KoBO6cE3ZdrA 5 1 6 0 65.9kb 65.9kb
yellow open upgrades-2020-01-30 9s366Y2qR4CGCj5k5fAPOQ 5 1 80 0 122.4kb 122.4kb
yellow open allproblems-2020.01.25 Za_Y4uR4TbOw1qfdzf7FfA 5 1 4030 0 28.2mb 28.2mb
yellow open allproblems-2020.01.26 XKGyrQspQBqNlx4QFmUXGA 5 1 4012 0 28.9mb 28.9mb
yellow open upgrades-2019-07-28 0aYCfuLpTPmQPWTOmT4Y1A 5 1 6 0 39.3kb 39.3kb
yellow open upgrades-2019-08-10 N8JVou5kS-eyRCTdKM4y8w 5 1 6 0 39.9kb 39.9kb
yellow open timeline-2019.01 wl2miX0UQNWqx_vK85rowA 5 1 3 0 34kb 34kb
yellow open upgrades-2019-07-14 XRgPaJ5LRXqi4f5M5bupog 5 1 5 0 32.9kb 32.9kb
yellow open timeline-2019.02 LJZgAIjdRwuQB7ZOOpUO0w 5 1 4 0 44.5kb 44.5kb
yellow open allproblems-2020.03.11 jKOCc4yDR_eV2kL4VXaPWA 5 1 4389 0 31.1mb 31.1mb
yellow open upgrades-2020-01-10 -yQFgAHkR3WhfjxxBlCbKA 5 1 6 0 39.3kb 39.3kb
yellow open upgrades-2019-08-06 dDYwJ9ujRWSH7iB-NmGXjw 5 1 8 0 52.2kb 52.2kb
yellow open upgrades-2020-02-11 LJl7upAYTAGFPopC16Z9uQ 5 1 28 0 178.9kb 178.9kb
yellow open upgrades-2019-06-27 TMNCnBbzTr6qg-gjyv4s0w 5 1 32 0 204.2kb 204.2kb
yellow open upgrades-2019-06-28 _t-b8ngSSCajXPMepzjxeQ 5 1 34 0 162.9kb 162.9kb
yellow open upgrades-2019-09-13 f0v6lOfSSL-BJuy4OoyEsw 5 1 24 0 153.4kb 153.4kb

```

please how would i **GET** indices older than 1 month and then how would i delete them afterwards ?

---

<div class="post-metadata">

### Author: ![Vadims\_Daleckis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vadims_daleckis/32/57613_2.png) [@Vadims\_Daleckis](https://discuss.elastic.co/u/Vadims_Daleckis)
#### Post date: [March 24, 2020, 5:38pm UTC](https://discuss.elastic.co/t/search-and-delete-indexes-older-than-1-month/224853/2 "2020-03-24T17:38:49Z")

</div>

I don't know how to do that in Kibana, but there is `curator` tool that can do that.

> **[elastic/curator](https://github.com/elastic/curator)**
>
> Curator: Tending your Elasticsearch indices. Contribute to elastic/curator development by creating an account on GitHub.

On StackOverflow the selected answer shows the full command that should be able to do that: [https://stackoverflow.com/questions/33430055/removing-old-indices-in-elasticsearch](https://stackoverflow.com/questions/33430055/removing-old-indices-in-elasticsearch)

---

<div class="post-metadata">

### Author: ![Hamza\_Y](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hamza_y/32/63795_2.png) [@Hamza\_Y](https://discuss.elastic.co/u/Hamza_Y)
#### Post date: [March 25, 2020, 7:12am UTC](https://discuss.elastic.co/t/search-and-delete-indexes-older-than-1-month/224853/3 "2020-03-25T07:12:27Z")

</div>

thank you, i did see curator  
The reason i ask about doing it from kibana is because this is an AWS Elastic service, so i cannot log into an instance

---

<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: [April 22, 2020, 7:12am UTC](https://discuss.elastic.co/t/search-and-delete-indexes-older-than-1-month/224853/4 "2020-04-22T07:12:32Z")

</div>

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