Order 25, rule 2 of Civil Procedure Rules: Discontinuance
(1) Where a suit has been set down for hearing it may be discontinued, or any part of the claim withdrawn, upon the filing of a written consent signed by all the parties.
(2) Where a suit has been set down for hearing the court may grant the plaintiff leave to discontinue his suit or to withdraw any part of his claim upon such terms as to costs, the filing of any other suit, and otherwise, as are just.
(3) The provisions of this rule and rule 1 shall apply to counterclaims.
Check the current authoritative text and amendment history before relying on this provision.