// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.mjs` to generate the docs examples

[source, js]
----
const response = await client.deleteByQuery({
  index: "my-index-000001",
  slice: {
    id: 0,
    max: 2,
  },
  query: {
    range: {
      "http.response.bytes": {
        lt: 2000000,
      },
    },
  },
});
console.log(response);

const response1 = await client.deleteByQuery({
  index: "my-index-000001",
  slice: {
    id: 1,
    max: 2,
  },
  query: {
    range: {
      "http.response.bytes": {
        lt: 2000000,
      },
    },
  },
});
console.log(response1);
----
