How do I delete a single "Types" from Indices?

Hello there.
I am new in elastic search and I'm .net developer. I am using elastic search nest for my data, having One Indices name "XYZ" having multiple Types named like "AA", "BB", "CC" and "DD".
My question is that from multiple Types above mentioned I want to delete or remove particular Types "BB" with all data. Is this possible? How?

https://www.elastic.co/guide/en/elasticsearch/reference/5.6/docs-delete-by-query.html
.
It's better if you split things out into their own indices :slight_smile:

But I have code like this multiple Types into single Indices. For that I have to change whole code, and this is just an example. I have multiple numbers of Types into Multiple Indices. From that I have to remove or delete particular Types from its matching Indices.

You may want to read these blog posts;

From 6.0 you can't create anymore multiple types per index.

Also even though in 5.x you can DELETE a type it is not going the remove the mapping but only documents.

Behind the scene it will mark documents as deleted. The actual removal will eventually happen later.
Less efficient than deleting an index.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.