The amount of the cost of vacation and closing or removal or demolition by the building official shall be a lien against the real property upon which such cost was incurred. This lien shall attach to the real property upon the payment of all costs of demolition by the county and the filing of an itemized statement of the total sum of the costs by the building official in the office of the county clerk on a lien docket maintained by the clerk for such purposes. If the dwelling, building or structure is removed or demolished by the county, the county shall sell the materials of such dwelling, building or structure and shall credit the proceeds of such sale against the cost of the removal or demolition; and any balance remaining shall be deposited in the superior court, shall be secured in such a manner as may be directed by such court, and shall be disbursed by such court to the person found to be entitled thereto be final order or decree of such court. Nothing in this article shall be construed to impair or limit in any way the power of the county to find and declare nuisances and to cause the removal or abatement by summary proceedings or otherwise.