It is a Class 2 misdemeanor for any person to move, tear down, or destroy any building on a lot in a municipality upon which taxes have been levied until after such taxes have been fully paid. If such a building is removed, torn down, or destroyed without the payment of taxes, the unpaid taxes shall be a lien upon the building, the lot from which it was removed, and the lumber and other materials of which the building was constructed. This section does not apply to any building condemned as a fire hazard.
SDCL 10-20-10