The High Court has ordered the registrar of births and deaths to remove the name of a man from a minors birth certificate after two DNA tests proved that he was not the father.