While scrolling, does the scroll id change

Hi all,
In the documentation

in the loop while the scrollId is erased each time
My question is why this is done like that ? are the scrollId changes each time ? and if so why only clearing the last one?

Regards

It'd be helpful if you could please link to the documentation page that you are taking this from, so that we know exactly what you are referring to :slight_smile:

@warkolm he is talking about this example
Search Scroll API