The governing body shall have power to pay a prior lien or liens out of any moneys in its general fund in order to protect its interests in property described by § 9-27-2. The holder of a prior lien may foreclose or otherwise realize upon the same if such municipality shall fail to pay said lien either by a sale of such property or otherwise within ninety days after written demand shall have been made upon the governing body.
SDCL 9-27-3