Code of Civil Procedure Article 262

The plaintiff may, before the judgment becomes final and binding, voluntarily dismiss the action in whole or in part, and except where the defendant has proceeded orally on the merits, such dismissal shall be subject to his/her consent.A voluntary dismissal shall be made by pleadings. Notwithstanding, it may be made orally before the court or the commissioned judge in the court session.A voluntary dismissal made orally shall be indicated in the transcript and in the case where the opposing party was not present, such transcript shall be served on the opposing party.The defendant is deemed to have agreed to the voluntary dismissal if he/she does not object to such dismissal within ten days from the day of the court session in the case where he/she appeared and did not express whether he/she agreed or disagreed, or from the day of service of the transcript provided in the preceding paragraph or the dismissal pleading in case where he/she failed to appear in the court session or where the dismissal is made by pleadings.
中文原文 民事訴訟法第262條
原告於判決確定前,得撤回訴之全部或一部。
但被告已為本案之言詞辯論者,應得其同意。
訴之撤回應以書狀為之。
但於期日,得以言詞向法院或受命法官為之。
以言詞所為訴之撤回,應記載於筆錄,如他造不在場,應將筆錄送達。
訴之撤回,被告於期日到場,未為同意與否之表示者,自該期日起;其未於期日到場或係以書狀撤回者,自前項筆錄或撤回書狀送達之日起,十日內未提出異議者,視為同意撤回。

English translation for reference only; the Chinese text prevails. Not legal advice.