How to unload previous level when loading a new one

are you using stream levels?

image