// This file is autogenerated, DO NOT EDIT
// docs/delete-by-query.asciidoc:521

[source, python]
----
resp = client.delete_by_query(
    index="my-index-000001",
    refresh=True,
    slices="5",
    query={
        "range": {
            "http.response.bytes": {
                "lt": 2000000
            }
        }
    },
)
print(resp)
----
