ElasticSearch Snapshot_backup

HI I want to take the backup of my elastic cluster using snapshot api end point and then i want to delete the indexes to have new data in it.

my question is that while taking the snapshot backup will the logs still coming to the indexes from the logstash? if yes then i might miss some logs as after taking the snapshot backup i want to delete all my indexes.

how can i manage the above issue