Generally, withdrawing a legal case in India isn't straightforward, but it remains possible under particular circumstances. Such process is governed by the CrPC and involves the consent of the magistrate. https://panchanandshaw.com/blog/can-i-change-my-lawyer-during-a-case/