Delete index by query

I want to delete indexes that are older than 7 days old and also possess 0 docs in it by DSL query.

if anybody know, kindly let me know

Thanks

Welcome to our community! :smiley:

You should use ILM for index management.

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