Liam Allan’s name was cleared when crucial evidence was revealed (Picture: BBC)

Bungling cops withheld texts from an alleged rape victim that kept an innocent man in ‘terrible limbo’ for two years.

The messages revealed she had told a friend the sex with Liam Allan ‘wasn’t against her will’.

First victim of horror multi-vehicle crash named as taxi driver Imtiaz Mohammed

Another message showed the alleged victim tried to have more sex with Mr Allan after the attack was said to have happened in September, 2015.

But officers sat on the evidence for two years until the 22-year-old student’s trial was brought to Croydon Crown Court.

Their handling of the case has led to calls for an urgent inquiry into how the Met didn’t give prosecutors the crucial evidence.

Police sat on the evidence for two years (Picture: Facebook)

And now Mr Allan is preparing to sue the police and the CPS.

His lawyer Simone Meerabux told the�?Sun on Sunday: ‘Mr Allan lost two years of his life because of gross negligence.

Fundraising page set up for police officers seriously injured after being hit by Masarati

‘We are considering legal action against the police and the CPS.’

The psychology student from Greenwich University said he ‘no choice’ but to sue, and added: ‘I am however, happy to work with the CPS and police to help ensure things change for the better.

‘In this case no individual is to blame, there are multiple factors.’

Liam Allan said he was kept in a ‘terrible limbo’ for two years (Picture: Facebook)

The Metropolitan Police said it was carrying out an ‘urgent assessment’ over the way it was handled.

Granddad died after patient was 'mistaknely' given operation over him

In an interview with the Mail on Sunday, Mr Allan said he had not ‘slept properly’ for two years since he was arrested and kept on bail.

He said: ‘The support from friends was fantastic, no one believed for one minute that I was guilty. No one treated me differently, no one gave me funny looks at university. I just had to carry on.’

Mr Allan said he believed the case started when the complainant, who cannot be named for legal reasons, began telling ‘a little white lie’.

The case collapsed at Croydon Crown Court (Picture: Google)

He said: ‘It completely spiralled out of control and it became a story she had to stick to. She completely lost control of what happened.

‘I am hoping to use my experience to help change system failures for the benefit of both victims and falsely accused people together.’

The Crown Prosecution Service said they offered no evidence in the case on Thursday, as it was decided ‘there was no longer a realistic prospect of conviction’.

MORE: UK diplomat found dead after being ‘strangled and sexually assaulted’ in Beirut

MORE: Gambling addict stole £12,000 from elderly woman in his care