UE5 C++ 18 - How To Add or Remove Sub-Level from World with C++? - Unreal Engine Tutorial Editor CPP

Even though the functions are already there in EditorLevelUtils, I wanted to show them to you. You know… since we are on the sub-level topic.

Hello, do you know how to remove a sublevel dynamically through the Unreal Python API by any chance? I know how to add a level but I can’t find anywhere how to remove it and I really need this for my automation process. Thanks in advance