Elasticsearch 5.0 Document APIs delete by query
But i can't find it in elasticsearch-php.
https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/_breaking_changes_from_2_x.html
"DeleteByQuery endpoint has been removed." - they removed method.
May I ask how you solved your problem?
Most helpful comment
DBQ was added back in ES-PHP 5.1.0: https://github.com/elastic/elasticsearch-php/blob/5.0/src/Elasticsearch/Client.php#L299