Tex. Code Crim. Proc. art. 32.02
Current with legislation from the 2023 Regular and Special Sessions signed by the Governor as of November 21, 2023.
The attorney representing the State may, by permission of the court, dismiss a criminal action at any time upon filing a written statement with the papers in the case setting out his reasons for such dismissal, which shall be incorporated in the judgment of dismissal. No case shall be dismissed without the consent of the presiding judge.
Tex. Code Crim. Proc. § 32.02