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. Source: SL 1935, ch 156 , § 3; SDC 1939, § 45.2120. 9-27-4