How do I remove an image during an event?

EDIT: Thanks for the speedy solution! This is working now.

I have an egg image in-game. I want it to disappear when the player receives the egg. But it won't budge.

My setup:
As soon as the player enters a room, an event autoplays. A cutscene.
This event is a bunch of text and movement.
At one point, the player is given an egg.
I've created a key item called Unkown Egg, and the player receives this item.
I have a second autoplay event with an egg image, with an if statement, to remove the egg sprite when the player receives the item.
The egg won't disappear.

Things i've tried in an if statement:

if party has unknown egg:

1) set movement route: transparent On
2) set movement route: switch ON:
3) control switches (see screenshot)
4) erase event

Everything I try is getting ignored. Are there other ways to remove the egg as soon as the player receives it?

event 1: (text and movement, and egg item received)
event 2: (the egg, and an if statement attempt to remove the egg) if statement: switch to make egg vanish:

in-game appearance, for context:
(I want the egg in the red square to disappear at this point)
Maybe i am missing something, but why don't you set the switch directly after the "Change items: Unknow Egg +1 command in the primary autorun event?
Having multiple autorun events in parallel is not helpful.

Simply try to add the switch where i mentioned and change the egg event type from autorun to action button. Remember to do this on both pages of the egg event.
Maybe i am missing something, but why don't you set the switch directly after the "Change items: Unknow Egg +1 command in the primary autorun event?
Having multiple autorun events in parallel is not helpful.

Simply try to add the switch where i mentioned and change the egg event type from autorun to action button. Remember to do this on both pages of the egg event.
Sounds good. How do I make event 1 remove the image in event 2? sorry, I'm pretty new to this.
Edit: It's working now. Thanks for the help!
You put the "Control Switch" command from your egg into the first event, below the text "you received the egg", or as @ElCheffe suggested, after you actually receive the egg via command.

Also make sure to make your egg not "autorun" anymore.
You put the "Control Switch" command from your egg into the first event, below the text "you received the egg", or as @ElCheffe suggested, after you actually receive the egg via command.

Also make sure to make your egg not "autorun" anymore.
That worked! Thanks both, I really appreciate it!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-remove-an-image-during-an-event.137810/