As I like to say, if you can put it in words you can probably put it in script
Why do you want to delete the last save loaded? If you know the path to the file, you can do filedelete("path"); but deleting files makes nexus sad
i think he meant to delete the bricks, not the actual file
in case somebody accidentaly misloaded something
i'm guessing package onloadplant to put the brick IDs into a list which is cleared each time the load begins, so it starts fresh each time
from there all the bricks in the list can be deleted