Delete child node function