Section 262(2) in Bharatiya Nagarik Suraksha Sanhita, 2023
(2)If, upon considering the police report and the documents sent with it under section 193 and making such examination, if any, of the accused, either physically or through audio-video electronic means, as the Magistrate thinks necessary and after giving the prosecution and the accused an opportunity of being heard, the Magistrate considers the charge against the accused to be groundless, he shall discharge the accused, and record his reasons for so doing.[Similar to Section 239 from Old CrPC-Also Refer]