I am working on elastic search and I have the following situation.
- I have two indices index1 and index2.
- Alias1 points to index1 and index2.
- Alias2 points to index2.
I would like to delete all of them. Do I need to delete index1, index2 and then delete aliases ? Will the aliases exist if I delete both the indices ? If they exist, what are the java API's to delete those aliases ?