Suits may be dismissed, in writing, out of term time as well as in term, and further costs stopped. If compromised and dismissed before the return day of the original writ, or before the court to which an appeal is taken from the judgment of a court of general sessions, no costs, except the clerk's fee for issuing the writ and the sheriff's fee for serving it, if served, shall be taxed.
T.C.A. § 20-12-106