If the principal does not give a sufficient substitute surety within the time ordered by the court or such longer time as the surety consents to, all rights obtained by giving the original bond immediately cease and the court shall upon ex parte motion so order.
Ca. Civ. Proc. Code § 996.140