Deleting Rows in a Google Sheet - reverse order needed

Heya!

I’m trying to delete multiple rows in a Google Sheet that aren’t needed, and I can go about collecting a list of all the rows to be deleted easily, however when it comes to deleting them, they need to be done in reverse order (from the bottom up) otherwise after the first deletion, the following rows shift upwards meaning the wrong data line gets deleted.


Thoughts appreciated!
Thanks