Doubt in the video

In the video, at 13.46, why have we again called the recursive function? we have found the replace node, now we can directly delete it

we found the node which we have to replace but
the node which we have to delete is root node

to delete root node we have to first swap it with replace node
so first we swap
and then call recursion to delete the root node which is now the leaf node (because it is swap with replace node)

i hope it clear now
if not feel free to ask

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.