0

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?

Madhesh
  • 5
  • 1
  • 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 Answers1

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