Whenever there is pending in any court of this state, an untried suit wherein the title to or possession of any office is involved, regardless of the nature of the pleadings, it may be discontinued by the plaintiff upon payment of costs.
La. Public Officers and Employees § 42:87