/Engine/Source/Editor/BlueprintEditorLibrary/Public/BlueprintEditorLibrary.h
Deletes any unused blueprint created variables the given blueprint. An Unused variable is any BP variable that is not referenced in any blueprint graphs
Number of variables removed
static int32 RemoveUnusedVariables ( [UBlueprint](API\Runtime\Engine\Engine\UBlueprint) * Blueprint )