Can you erase a event, with a event?

Can someone explain to me if or how its done?
create your event, then create a second page on the same event and use the Erase Event command... I have included screen shots of one of my event showing page 1 and 2


Event page 1.jpg


Event page 2.jpg


and you need to start here if your new to this... the following links to the tutorials will answer alot of your questions...
Code:
$gameMap.eraseEvent(id);

Original thread: https://forums.rpgmakerweb.com/threads/can-you-erase-a-event-with-a-event.72690/