I manually deleted the indices through the following command and now it works:
curl -XDELETE 'http://localhost:9200/index_name' -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6cffe11a-6ca5-4c98-8216-d8f0603a644e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
