Court is the temple of justice and judges are the god of "temple of justice". Advgyan is just an educational website.
Section 245 CrPC As Per The Central Government Act
245. When accused shall be discharged.—
(1) If, upon taking all the evidence referred to in section 244, the Magistrate considers, for reasons to be recorded, that no case against the accused has been made out which, if unrebutted, would warrant his conviction, the Magistrate shall discharge him.
(2) Nothing in this section shall be deemed to prevent a Magistrate from discharging the accused at any previous stage of the case if, for reasons to be recorded by such Magistrate, he considers the charge to be groundless.