Delete type in index using java api

DeleteByQuery was a plugin before 5.0.
So you probably need to add it to the transport client as well if you want to use it.

May be read as well: