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

[source, python]
----
resp = client.delete_by_query(
    index="my-index-000001",
    routing="1",
    query={
        "range": {
            "age": {
                "gte": 10
            }
        }
    },
)
print(resp)
----
