Additional Sessions Judge Sanjay Garg granted the relief to the South-West Delhi resident, noting that though the prosecution of the accused had been launched on the statement of the girl, she did not support the case of the police during the course of trial.
The case was filed in July 2014 on the girl's allegation that the accused, a neighbour, had raped her several times over a few months. Thereafter, the accused was arrested.
Before the court, however, the girl resiled from her statement made to the police and denied the allegations made against the man.
The girl, however, later told the court that she had implicated the accused in the case at the insistence of her aunt, who used to reside in the neighbourhood and with whom the accused had a quarrel two days before the lodging of the FIR.
The accused had pleaded not guilty and claimed trial.
"For the failure of the complainant/child victim to support the case of the prosecution, it is evident that the prosecution has miserably failed to bring home the guilt of the accused," the court said.
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections.