The Code of Criminal Procedure at CrPc 227 states:
Discharge.
If, upon consideration of the record of the case and the documents submitted therewith, and after hearing the submissions of the accused and the prosecution in this behalf, the Judge considers that there is not sufficient ground for proceeding against the accused, he shall discharge the accused and record his reasons for so doing.
what makes a charge groundless ?