How can I remove events from other events?

If the title doesn't make sense, let me explain...

If my characters trigger an event, I want some other events to disappear.

For example, in my game, the characters need to talk to some people who run away if they don't have a certain item. I'm using conditional branches, but there's nothing that looks like it'll let me erase other events.
Make a 2nd page (leave it empty) at those event and choose as condition "switch xy is on". Now let that other event activate that switch if the condition is true.
There are probably lots of ways of doing this, but possibly the simplest is this:

Event 001 you want to disappear.  Page One, set up to do all the things you want them to do until the decisive moment (walk around, talk, whatever).  Page Two, no graphic and with a switch (which we will call "Vanish") set as the condition at the top left.

Event 002 is where you do whatever it is that you want to trigger the disappearance.  At the time that you want the disappearance to happen (perhaps in the middle of one of these conversations) insert the command Control Switch [number] Vanish ON

EDIT

Ninja'd by a nanosecond!
Hi Sopo.


If these answers don't clear everything up for you, you could try my switches demo


http://forums.rpgmakerweb.com/index.php?/topic/14799-switches-demo-aindras-tut-revisited-for-ace/

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-remove-events-from-other-events.15011/