Save deleted objects

Hi. I have a lot of objects that get deleted thru the game. To save the fact that they got deleted do i have to create a variable for each of them and save the variable or is there an easier way like “save objectX deleted yes/no”? thanks

just add the to be deleted objects into a structure or array, before deleting them.
to make your work easier and your code cleaner put these objects into a group.

cool thanks.