Okla. Stat. tit. 22 § 814 : — Criminal ProcedureDismissal of Prosecution — Dismissal of Action - Discharge or Exoneration of Bail TEXT PDF If the court direct the action to be dismissed, the defendant must, if in custody, be discharged therefrom, or if admitted to bail, his bail is exonerated, or money deposited instead of bail must be refunded to him. Okla. Stat. tit. 22, § 814 R.L. 1910, § 6098.