Delete all mappings

Hello,
How can I delete all mapping with type name "accessLog" and "someField" has type "string" under that mapping in whole ES data?

br,
Sunil

You cannot delete mappings without deleting the data as well.

Yes Mark, that is understood. its as good as dropping the table. RIght?

It removes the data, yes.

So, what approach or standard practice in such case?
If do some change in field type under same mapping, it shows mapping conflicts.

You need to reindex.

OK, then, I can do it using Migration checker plugin.
Thanks!

However,
Any guide for writing query to delete such mappings in case I don't need data?

curl -XDELETE host:9200/indexname will do it.

Hi,
But there are 'n' number of such indexes based on application name and date. e.g. appName-YYYY-MM-DD

I want to delete only those indexes, where there is mapping 'accessLog' and field 'responseTime' having field type 'string'.

br,
Sunil

You'll need to install https://www.elastic.co/guide/en/elasticsearch/plugins/current/plugins-delete-by-query.html then