[SOLVED]Enemy disappearing after battle.

I knew how to do that in RMXP when I was 12, but during my hiatus from RPG Maker, I forgot many things, like this:
In my game, the enemies will appear on the map, and if they touch you (or you touch them), a battle will start. Once the battle ends, the enemy will disappear and will only return if the player leaves the map and THEM enter again.

And here it is: how I do that? Because using the "Local Switch" command makes the enemy disappear permanently.
erase event instead of switching off
erase event instead of switching off
I'm trying to find this option, but the best I could find were "change opacity" and "transparency OFF".
The Option "Stop Event" does not seem to work either.
erase event is a command on the event command list, somewhere on the three pages of event commands.
I finally found it.
It was written as "Erase Temporary Event", and it worked perfectly as well.
The problem is solved now, and I can't believe it was something this easy...

Original thread: https://forums.rpgmakerweb.com/threads/solved-enemy-disappearing-after-battle.104641/