I have problem with event

Hi i have problem with my eveny, em i create 2 event with image character, and i want in another event which causes these events to be deleted but when I leave this room and enter it, these events reappear, how do I remove them?

my point is that when another event ends after it ends, it removes these characters
with TSR_SaveEvent or YEP_SaveEventLocation, you can use notetag.
another way if you kill them, use a selfswitch and the 2nd page blank,
so it wont re-appear.
'erase event' is only temporary until reenter that map. use a 2nd page and switch/selfswitch or variable page condition. theres a script command to change self switches on other events.

$gameSelfSwitches.setValue([MapID, eventID, 'switchLetter'], true/false)
script: $gameSelfSwitches.setValue([2, 7, 'A'], true)
turns on self switch A for event (uses the default name) EV007 on map 2
To permanently "delete event", add another page to event with selfswitch (for example A) to ON, then to delete this event, set that selfswitch (A) to ON.
To permanently "delete event", add another page to event with selfswitch (for example A) to ON, then to delete this event, set that selfswitch (A) to ON.
Alternatively, if you want something outside the event to delete the event, you could use an ordinary switch to trigger the blank event page.

Original thread: https://forums.rpgmakerweb.com/threads/i-have-problem-with-event.140744/