How to unload previous level when loading a new one

Hello I’m just got into the menu part of my game and I’m trying to set the way of going from the menu to the main level but for some reason the menu leve still remains when I load the main level. The UI widget remains and the player of the main menu remains as well and I can’t understand why really. Anyone that could help it would be appreciated.

Thanks in advance.
Jose Antonio.

are you using stream levels?

image

also:

Widgets on screen dont belong to levels so If you want to remove from screen just
‘remove from parent’ it

No, I´m not using streaming levels, I found out the issue though. The gamemode on the main level was not set to be overwritten so by default it would keep the menu gamemode and keep the UI and player controller that came along with it. Setting the overwrite gamemode to the correct one on the main level settings fixed it.

Thanks anyway.