Throttle a delete by query operation

  • POST /_delete_by_query/{task_id}/_rethrottle

Change the number of requests per second for a particular delete by query operation. Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts.

Path Parameters

task_id string TaskId required

The ID for the task.

Query Parameters

requests_per_second number required

The maximum number of documents to delete per second, across the entire delete-by-query operation (including slices). It can be either -1 to turn off throttling or any decimal number like 1.7 or 12 to throttle to that level.

Response