Elasticsearch, how to delete the data in the index by date

Created in the elasticsearch named: java_log index, there are 2017-01 to 2018-05 data, want to delete the 2017 data inside the index, while the index itself is not deleted, how to achieve?

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