The plaintiff has seen fit to ask the court below for an order permitting him to discontinue his action, on the payment of costs to the defendants. That court has refused his request, and on appeal from the order he claims that he has the right, of his own head, to discontinue his action on those terms. But there is no valid discontinuance of an action without an order to that end. That order, whether ex parte or on motion, must be an order of the court, and as its order, within its control. It is true, as a general rule, that a plaintiff may, upon the payment of the costs of the defendant, enter an order of discontinuance of the action, and give notice thereof, and that the cause will be thereby discontinued. Yet the court has always kept and exercised the right to control such an order, as well as any other order put upon its records. And where circumstances have existed which have made it inequitable that the plaintiff should, of his own head and without terms, discontinue his action, they have refused his motion to do so altogether, or except on terms; or when he has entered an order ex parte, have opened it, and made it conform to what was proper under the circumstances. Thus the order has been refused where a counter-claim had been set up, against which the statute of limitations would be a bar, if the suit was discontinued; (Van Alen v. Schermerhorn, 14 How., 287;) or where the defendants had been examined as witnesses, unless the plaintiff would stipulate that the examination might be used in evidence in any action to be subsequently brought: Cockle v.Underwood, 3 Duer, 676; see, also, Cooke v. Beach, 25 How., 356. *Page 377 So that the court, to which the motion for leave to discontinue was addressed, had a discretion, under all the circumstances of the case, whether or not to refuse it.
We do not think that it abused that discretion. The plaintiff had pursued his action of ejectment against a tenant, until the landlord had interposed and been made a defendant so that he might protect his own rights in the premises; the plaintiff had recovered judgment in his action of ejectment, and had been put in possession of the lands; the defendant had paid the costs and taken a new trial under the statute; and then the plaintiff, still in possession, asks leave to discontinue his action. He got the fruit of his action, the whole fruit of it, the possession of the premises. By a discontinuance of his action, he would turn the defendants about to an action of ejectment against him, and lay on them the burden of showing a valid title, sufficient to support the action against him. Had he preferred not only to give up the action, but the substantial fruits of it which he had got, and to put the defendants, or either of them, into the possession that he had taken from them, he might not be required to prosecute an action which he wished to end, and to further continue litigation. But it is quite different when he has got all that his action could give him, and has put the defendants to the need of that further litigation which the law allows them, to maintain what they think is their right, for him then to discontinue his action and throw the burden of the affirmation of another issue upon the defendants. The court might well require him to pursue the action that he had commenced, until a definite and final result was reached in it, settling positively the right of possession of the lands in dispute.
We therefore think that the court below, in making the orders appealed from, did not abuse or exceed their discretion.
The appeal should be dismissed.
All concur.
Appeal dismissed. *Page 378