If, by reason of the neglect of the defendant to appear, money deposited instead of bail is forfeited, and the forfeiture is not discharged or remitted, the clerk with whom it is deposited must, at the end of 180 days, unless the court has before that time discharged the forfeiture, pay over the money deposited to the county treasurer.
Ca. Pen. Code § 1307