Help deleting an event after it's already run

I'm trying to make an event that wont keep looping around but it won't. I tried what's on this forum ===> https://forums.rpgmakerweb.com/inde...vents-permanently-after-the-event-runs.15652/ but it didn't work and it just made the event not work at all.
Typically, events are stopped from running one of two ways:

1: Use Erase Event at the end of the event (only works if you want it to run every time you come to the map)

2: Turn on self switch A at the end of the event, then on page 2 put an empty event to run when self switch A is ON.

If neither of those seem to be working, please post a screenshot of your event. We need to see the entire thing, so don't crop it please.
4IhZy
I'm sorry I'm really trying to send the image but it's confusing-
It was in the approval queue, but it posted. Usually we'd ask you to not post below yourself like that, but you probably had little choice due to the approval system.

Ok, your first page looks good. What's Page 2? Or maybe page 2 is that IMG X I see right now. Maybe try using a direct link to the image when you post it? It will show up better.
Page two only has Control Self Switch = ON and then a text box that just says boop.
That won't work. You have to set page 2 to Self Switch A ON (left hand side under conditions), then put nothing else in the event. And leave it set to action button (autorun will make your game freeze if it is on an empty event, as it will always run nothing).

As it is, what is happening is it sees that page 2 is valid, so it is trying to run that, and always that. RPGMaker always runs the highest numbered page which is valid, which, in this case, is page 2, as you never set it to not be able to run.
Still nothing. I took out the boop and left everything. The main event is set to player touch and it won't play
Post a picture of your page 2 then, as it is the source of the problem.
Why do you have event commands after turning on the self-switch? That should be the last thing, otherwise the commands after that won't run, if you are turning on the second page with self-switch A.

Your second page should look like this:
SSA.png
Thank you so much. And thank you for the picture mlogan, that really helped!
I suggest making Mlogan's page a parallel process and then have nothing except "erase event." Its good in the long run if you have a lot of events on a map at once. Deleting 1+ events as soon as they load will help the program.

Original thread: https://forums.rpgmakerweb.com/threads/help-deleting-an-event-after-its-already-run.83167/