Whenever the governing body of any municipality, township, or county of this state having jurisdiction has had, or shall have, presented to it a petition for the vacation of any public highway, street, alley, or public ground or any part thereof, and, after published notice and public hearing, such governing body has granted or shall grant the petition in whole or in part and there was, or shall be recorded in the office of the register of deeds of the county wherein such area is located a certified copy of the resolution or record of the action taken by such body relative to such petition, any defect or irregularity in the proceedings in such matter shall be deemed validated, legalized, and cured at the end of two years following the date of such recording and any easement or interest of the public in or upon the area so vacated shall then be terminated and action thereon barred.
SDCL 9-45-13