How to make an npc disappear after moving offscreen?

Hi,
there is a certain event I want to put in which you talk to an npc and after that he walks offscreen and dissapears, but I only get him to walk offscreen or to dissapear after he talks to you, I cant figure out the way to do both.
I'm going to assume your event has a Move Route that walks him offscreen/to the screen's edge. Immediately after that, put a "Wait for Move's Completion". And then after that, do your "Erase Event" or toggle on a switch, whichever suits your needs.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-an-npc-disappear-after-moving-offscreen.122453/