How do you close another screen in a new screen?

I'm trying to make my app use as less RAM and CPU stuff, and I want to do that by closing the previous screen with the new opened screen.
Like Screen1 opens Screen2 and Screen2 opens Screen3 and Screen3 closes Screen1 and Screen2.
I've tried that like this:
Make Screen1 open Screen2 and execute command 'close screen'.

But the newly opened screen closes instead of closing Screen1 when I use this code. Is there an alternative way to do this?

Check this:
App Inventor Tutorials and Examples: Manager Screen | Pura Vida Apps

App Inventor Tutorials and Examples: Multiple Screens | Pura Vida Apps

Basically, you can do this to open a new screen and close the current one:
image