Deleting index type in 2.2

In post 2.0, I was using adminClient.indices().prepareDelete(index , type) to delete index type. But this is not working in 2.0 and above. How can I delete a particular index type?

Regards,

From 2.0 and later, a type can't be deleted any more. You can either remove all documents from this type (for example by using delete by query plugin) or remove the entire index. The latter will obviously also delete all the other types.

Hi,
You have to install the plugin delete-by-query : https://www.elastic.co/guide/en/elasticsearch/plugins/2.2/plugins-delete-by-query.html
example : curl -XDELETE 'http://l000bsy001:9200/myindex/_query?q=_type:mytype'

It works fine