After a county has sold and issued to a purchaser a deed to any real property for which the county has taken tax title, the county auditor shall cancel the taxes levied against the real property before the sale by the county and enter the cancellation on the records of the treasurer. If the tax deed to the county and the county deed to the purchaser is declared void by a court within three years of the execution of the tax deed to the county, the taxes shall be reinstated by the county auditor on the records of the county auditor and the records of the treasurer, and the treasurer shall place a lien against the real property.
SDCL 10-25-40