Order 25, rule 1 of Civil Procedure Rules: Withdrawal by plaintiff
At any time before the setting down of the suit for hearing the plaintiff may by notice in writing, which shall be served on all parties, wholly discontinue his suit against all or any of the defendants or may withdraw any part of his claim, and such discontinuance or withdrawal shall not be a defence to any subsequent action.
Check the current authoritative text and amendment history before relying on this provision.