Clear a scrolling search

  • DELETE /_search/scroll/{scroll_id}
  • DELETE /_search/scroll
Auth

Clear the search context and results for a scrolling search.

About paginating search results

Path parameters

scroll_id union string | string[] optional deprecated

A comma-separated list of scroll IDs to clear. To clear all scroll IDs, use _all. IMPORTANT: Scroll IDs can be long. It is recommended to specify scroll IDs in the request body parameter.

Leave it out to use /_search/scroll.

Request body

scroll_id union oneOf

The scroll IDs to clear. To clear all scroll IDs, use _all.

One of: string[] or string

Responses

application/json
succeeded boolean required

If true, the request succeeded. This does not indicate whether any scrolling search requests were cleared.

num_freed number required

The number of scrolling search requests cleared.

application/json
succeeded boolean required
num_freed number required