Delete index using the connector

Hi,

following up on my previous question in the topic "delete from index"
how can I delete an index using the connector?

@Costin, you said do it manually but how should I do this, speak to the REST service or can I use the connector for this? Is it's possible to use the connector how should I do that?

thanks in advance,
Richard

curl -XDELETE ES_HOST:9200/INDEX_NAME is all you need.

thanks I’ll do that

Dunno how to do it with the connector though sorry!

The connector does not expose DELETE to the user directly. It is supported though through SparkSQL for example (depending on the SaveMode used).