Whenever taxes levied by any political subdivision upon real property have become delinquent and have been returned to the county commissioners, or have been entered as liens in the office of the prothonotary of any county in the Commonwealth, and such delinquent taxes and the penalties, interest and costs due thereon exceed, in the opinion of the tax levying authorities, the net amount which could be realized at a tax sale of such real property upon which the taxes have been levied, and, in the opinion of said authorities, is more than could be realized by enforced collection against the owner of such property, it shall be lawful for the tax levying authorities, or any of them, if the court of common pleas of the county, in which such real property is situated, shall first have consented thereto, to accept in compromise of such delinquent taxes, penalties, interest and costs any sum less than the whole amount due, and to enter satisfaction of all such taxes on the record.
72 P.S. § 5551