How to delete the records older than certain time using elastic java rest client


I am looking to delete all the records older than 1 month or so(in bulk). How to get this done using java restclient.

That'd be very inefficient. Instead you should use time based indices and just drop the indices which contains data older than one month.

1 Like

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