(a)
Any department, officer, or employee of a county charged by law with the collection of any county or district tax assessment, penalty, cost, license fees, or any money, which is due and payable to the county or district for any reason, may apply to the board of supervisors for a discharge from accountability for the collection thereof if the amount is too small to justify the cost of collection, the likelihood of collection does not warrant the expense involved, or the amount thereof has been otherwise lawfully compromised or adjusted.
(b)
Any collection program that is operated by a county may apply to the board of supervisors for a discharge from accountability for the
court-ordered debt or bail that it would otherwise be responsible for collecting, if the amount is too small to justify the cost of collection or the likelihood of collection does not warrant the expense involved. Responsibility for collection of court-ordered debt or bail shall be demonstrated by a written agreement between the county and the court. If the court is responsible for collecting court-ordered debt or bail, the court may transfer responsibility for discharging court-ordered debt or bail to the county by written agreement.