Deleting by date in 2.0

I'd like to delete data in a specific index by date.
I read that the delete by query is no longer available in 2.0

How do I achieve this?

It has been moved from core Elasticsearch into a plugin, so it is still available.