/Engine/Source/Editor/UnrealEd/Public/PackageTools.h
Helper function that attempts to unload the specified top-level packages.
true if the set of loaded packages was changed
static bool UnloadPackages ( const [TArray](API\Runtime\Core\Containers\TArray)< [UPackage](API\Runtime\CoreUObject\UObject\UPackage) * > & PackagesToUnload, [FText](API\Runtime\Core\Internationalization\FText) & OutErrorMessage, bool bUnloadDirtyPackages )