Please help me: How to permanently delete an event once it run.

So as the thread's title stated. I really need help how to permanently delete an event once it run.

In my game's intro, the character will walk inside its house. Then when its going to the main door the invisible event will run.(What i mean in invisible is, the event has no sprites or image.) Then something will happen. After the event happened, the Event itself will temporary 'Erase' but, when the character came back to its house. The event is still there.
So my Question is, How can i permanently delete an event once it run?.
Sorry for bad english bruddahs.

Take note : the event has no sprites or image.
Instead of using 'Erase Event', you need to turn on a selfswitch (A fo example). Then make a second page and set the condition to that selfswitch being on.
'Erase event' does not remove it permanently, it only removes it while you are on that map so that it doesn't run again. It is typically used for things like a parallel process which sets up the BGM, screen tint etc. for that map. You don't want it to run all the time once it's done its job. Or it might be used for an evented battle if you want the enemy to go away once defeated, but to respawn if you re-enter the map.

Instead, at the end of your event, set Self Switch A ON (event command menu, tab 1). Make a second page with nothing on it, set to Action button and with the condition 'Self Switch A ON'. Then when the event has run, it will activate the second page which does nothing.

As this is very basic eventing, can I strongly recommend that you pause for a short while and have a look at Andar's compilation of info for new users. Among the excellent things there you will see links to 2 playable tutorials, one for Event Commands and one for Switches and Variables. If you play through these you will have a solid foundation in 2 essential aspects of making any game, and will save yourself a lot of time and frustration in the long run.
Well. Thanks for fast reply guys 🙂 And Sir @Kes you explained it very well and very clean. Thanks for all 🙂
-You can close this thread now. Again Thanks 😉
Just a heads up for the future. When you want a thread closed, just Report your opening post and ask for it to be closed. Mods might not see an individual post, but will see a Report.
Thanks.

Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/please-help-me-how-to-permanently-delete-an-event-once-it-run.93539/