If the defendant recovers judgment against the plaintiff and no timely motion for vacation of judgment or for judgment notwithstanding the verdict or for a new trial is filed and served and is pending and no appeal is perfected and undertaking executed and filed as provided in Section 921, any undertaking received from the defendant in the action, all the proceeds of sales and money collected by the levying officer, and all the property attached remaining in the levying officer's hands shall be delivered to the person from whom it was collected or taken, unless otherwise ordered by the court; and the court shall order the discharge of any attachment made in the action and the release of any property held thereunder.
Ca. Civ. Proc. Code § 488.740