Delete documents type after version 2.0

I am trying to find out if there is any good way to delete a type after version 2.0, since delete by type was deprecated after 2.0

I am using Hive Integration to insert documents into elasticsearch. if hive's map reduce job die halfway due to some reasons; and re-insert without clean up all documents would end up with a lot of duplicate documents. If I have millions of documents, it would take really a long time to delete by query using "match_all". So I am just asking if there is a good way to efficiently delete a type. Thanks!

No, there is no way to do this efficiently.
You'd be better off putting things into their own indices.

Thanks for you reply.

This is exactly what I am going to do. I think I will put more information in their indices.