213. Discontinuance by the plaintiff of the whole of a judicial application terminates the proceeding on the notification of a notice of discontinuance to the other parties and its filing with the court office. It restores matters to their former state, and is effective immediately if it takes place before the court and in the presence of the parties. The legal costs are borne by the plaintiff, subject to an agreement between the parties or a decision of the court.