Remove SubTree added via SetDynamicSubTree after execution

So I have a BehaviorTreeComponent set up to add a SubTree(BehaviorTree) to the RunDynamicBehavior node in the base behavior tree via SetDynamicSubTree.

It executes the task set in the SubTree and loops due to EBTExecutionMode::Looped of the base behavior tree when SetDynamicSubTree is called during runtime.

Is there a way to remove this dynamically added subtree from the RunDynamicBehavior node? Or would I have to write custom code?

Thanks.