Delete index directory

I've tried deleting an index by calling '$ curl -XDELETE 'http://localhost:9200/indexName',
but in actual file system 'indexName' directory still persists in the path
'repository/elasticsearch/data/228.5.8.6/nodes/0/indices/'.
The delete API only deletes '_state' directory under 'indexName' directory.
Because of this, I can't recreate an index with the same name.
Does anyone have any workaround for this?

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/2f426122-558f-4b03-92ad-0c3e957a6773%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Are there any errors in the log when you delete the index? It sounds like
you may need to give correct permissions to the account running your ES
instance to be able to delete from the data folders.

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6a0e9a35-33bf-455d-99cb-da97ecee903f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.