/Engine/Source/Runtime/Engine/Classes/Engine/Level.h
Flag this level instance for destruction. This is called byUWorld::CleanupWorldto flag the level and its owned packages for destruction.
void CleanupLevel ( bool bCleanupResources, bool bUnloadFromEditor )