I am ingesting(using python-lambda) the data into AWS Elasticsearch cluster on a need basis. While ingesting the new data, I want to clear the old data but keep the visualizations intact. How can this be achieved?
Currently, I am using requests.delete(<url>/_all)
which I want to change.