All claims to liens under this chapter relating to public improvement contracts shall cease to have any validity or to be binding upon the public body or the contractor under the provisions of this chapter unless an action to enforce the same as hereinbefore provided shall be commenced within thirty days from the acceptance of the work for which the same shall be claimed or unless asserted under the provisions of §§ 5-22-9 to 5-22-11, inclusive.
SDCL 5-22-7