ENG-5043 fail elastic clear index if it is not empty