how to delete index while insetion is going on elastic search code example
Example 1: elastic delete index
curl -X DELETE "localhost:9200/twitter?pretty"
Example 2: delete index elasticsearch
curl -X DELETE 'http://localhost:9200/_all'
curl -X DELETE "localhost:9200/twitter?pretty"
curl -X DELETE 'http://localhost:9200/_all'