curl -XPUT 'www.example.com:9200/myIndexName?pretty'
Output:
{ "acknowledged" : true }
Reference Link: Here