Clear scroll API
Clears the search context and results for a scrolling search.
resp = client.clear_scroll(
scroll_id="DXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAD4WYm9laVYtZndUQlNsdDcwakFMNjU1QQ==",
)
print(resp) response = client.clear_scroll(
body: {
scroll_id: 'DXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAD4WYm9laVYtZndUQlNsdDcwakFMNjU1QQ=='
}
)
puts response res, err := es.ClearScroll(
es.ClearScroll.WithBody(strings.NewReader(`{
"scroll_id": "DXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAD4WYm9laVYtZndUQlNsdDcwakFMNjU1QQ=="
}`)),
)
fmt.Println(res, err) const response = await client.clearScroll({
scroll_id: "DXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAD4WYm9laVYtZndUQlNsdDcwakFMNjU1QQ==",
});
console.log(response); DELETE /_search/scroll
{
"scroll_id" : "DXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAD4WYm9laVYtZndUQlNsdDcwakFMNjU1QQ=="
} Request
DELETE /_search/scroll/<scroll_id> [7.0.0] Deprecated in 7.0.0.
DELETE /_search/scroll
Path parameters
-
<scroll_id> -
[7.0.0] Deprecated in 7.0.0. (Optional, string) Comma-separated list of scroll IDs to clear. To clear all scroll IDs, use
_all.Scroll IDs can be long. We recommend only specifying scroll IDs using the
scroll_idrequest body parameter.
Query parameters
-
scroll_id -
[7.0.0] Deprecated in 7.0.0. (Optional, string) Comma-separated list of scroll IDs to clear. To clear all scroll IDs, use
_all.Scroll IDs can be long. We recommend only specifying scroll IDs using the
scroll_idrequest body parameter.
Request body
-
scroll_id - (Required, string or array of strings) Scroll IDs to clear. To clear all scroll IDs, use
_all.
Response body
-
succeeded - (Boolean) If
true, the request succeeded. This does not indicate whether any scrolling search requests were cleared. -
num_freed - (integer) Number of scrolling search requests cleared.
© 2023-2025 Elasticsearch
As of September 2024, Elasticsearch is available under a choice of three licenses: the Server Side Public License (SSPL), the Elastic License, or the AGPLv3 (OSI approved).
Elasticsearch and the Elasticsearch logo are trademarks of Elasticsearch B.V., registered in the U.S. and in other countries.
https://www.elastic.co/guide/en/elasticsearch/reference/8.17/clear-scroll-api.html