// docs/delete-by-query.asciidoc:494

[source, php]
----
$params = [
    'index' => 'twitter',
    'body' => [
        'query' => [
            'range' => [
                'likes' => [
                    'lt' => 10,
                ],
            ],
        ],
    ],
];
$response = $client->deleteByQuery($params);
----
