The parents of a gravely ill girl have agreed to the withdrawal of her life support after the fight to keep her alive ended up in the High Court. 

One-year-old Olivia Stanca was born at Whipps Cross Hospital with Neuroblastoma, a rare form of cancer affecting the nervous system.

She was transferred to Great Ormond Street Hospital (GOSH), where she beat the cancer after two rounds of chemotherapy but has suffered several blood infections and recurrent episodes of severe multiple organ failure. 

Parents Maria and Gheorge, from Walthamstow, were told by doctors in late November that Olivia's treatment would cease in 30 days if her condition did not improve. 

Refusing to give up, the couple were willing to oppose an application due before the High Court which asked for permission to terminate a range of treatments. 

Yesterday, Mr Justice Moylan, sitting in the Court of Protection, was told Mr and Mrs Stanca had accepted Olivia's life was ending and agreed to end her life support following a rapid deterioration in her condition.

Representing the hospital trust, Fiona Paterson, told judge Moylan the parents "now accept an end-of-life plan is necessary".

Olivia will spend her final moments surrounded by her mother and father at the hospital's rooftop garden after the hospital agreed to grant Mrs Stanca's "dearest wish". 

Her life support will be withdrawn except for a portable ventilator and intravenous drug infusion for pain relief and sedation.

Mr and Mrs Stanca had raised over £52,000 towards the necessary £550,000 for three months of intensive treatment at another hospital. 

Speaking to the Guardian in December, Mrs Stanca said they were "heartbroken and desperate for her to have a fair chance".