/Engine/Plugins/Importers/USDImporter/Source/USDExporter/Public/USDConversionBlueprintLibrary.h
This function is useful in case the prim is inside a variant set: In that case, just calling FUsdStage::RemovePrim() will attempt to remove the "/Root/Example/Child", which wouldn't remove the "/Root{Varset=Var}Example/Child" spec, meaning the prim may still be left on the stage. Note that it's even possible to have both of those specs at the same time: for example when we have a prim inside a variant set, but outside of it we have overrides to the same prim. This function will remove both.
[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Prim utils") static void RemoveAllPrimSpecs ( const [FString](API\Runtime\Core\Containers\FString) & StageRootLayer, const [FString](API\Runtime\Core\Containers\FString) & PrimPath, const [FString](API\Runtime\Core\Containers\FString) & TargetLayer )