/Engine/Source/Editor/UnrealEd/Public/Kismet2/ComponentEditorUtils.h
Deletes the indicated components and identifies the component that should be selected following the operation. Note: Does not take care of the actual selection of a new component. It only identifies which component should be selected.
The number of components that were actually deleted
static int32 DeleteComponents ( const [TArray](API\Runtime\Core\Containers\TArray)< [UActorComponent](API\Runtime\Engine\Components\UActorComponent) * > & ComponentsToDelete, [UActorComponent](API\Runtime\Engine\Components\UActorComponent) *& OutComponentToSelect )