title: Delete an alias and index in elastic search
body: <p>I am working on elastic search and I have the following situation.</p>
  
  <ol>
  <li>I have two indices index1 and index2.</li>
  <li>Alias1 points to index1 and index2.</li>
  <li>Alias2 points to index2.</li>
  </ol>
  
  <p>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 ?</p>