If a dwelling is removed or demolished by a public officer he shall sell the materials of such dwelling 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 circuit court by the public officer, shall be secured in such manner as may be directed by such court and shall be disbursed by such court to the persons found to be entitled thereto by final order or decree of such court.
S.C. Code § 31-15-390