Generally, dismissing a penal case in India isn't straightforward, but it can be possible under specific circumstances. Such process is governed by the CrPC and involves the consent of the magistrate. https://panchanandshaw.com/blog/can-grandparents-claim-child-custody/