we are using elastic-search 5 and i need to delete indices older than 30 days through API.Can any can help me out for this?
Asked
Active
Viewed 607 times
0
-
you need to create indices older than 30 days or indices inactive for more than 30 days? – Amit Feb 14 '20 at 07:56
1 Answers
0
You can use curator to do that.
https://www.elastic.co/guide/en/elasticsearch/client/curator/5.x/delete_indices.html
curator --host <hostname> delete indices --older-than 30

alexgids
- 396
- 3
- 11
-
-
ERROR Parameters --older-than and --newer-than require the --time-unit parameter – Madhesh Feb 14 '20 at 19:03