A public nuisance may be abated without civil action by any public body or officer as authorized by law. Any municipality may defray the cost of abating a public nuisance by taxing the cost thereof by special assessment against the real property on which the nuisance occurred. If the nuisance abated is an unsafe or dilapidated building, junk , trash, debris, or similar nuisance arising from the condition of the property, the municipality may commence a civil action against the owner of the real property for its; costs of abatement in lieu of taxing the cost by special assessment.
(SDCL § 21-10-6)