CONTRA COSTA COUNTY (KRON) — Former Deputy Sheriff Ricardo Perez resigned on Thursday while the subject of an on-going Contra Costa Sheriff’s Officer Internal Affairs investigation into his alleged participation in the Oakland Police Department sexual misconduct investigation.

Perez is no longer employed by the Office of the Sheriff. He remains subject to a criminal investigation being conducted by the Oakland Police Department.

According to KRON’s Haaziq Madyun, Perez is under investigation for allegedly having sex with Guap while she was a minor. In fact, Guap told Haaziq she did have sex with Perez.

“I was 17 and Ricardo Perez is the CoCo deputy,” Guap said via text to Haaziq.

Sheriff David Livingston said, “We earn the public trust through honesty, transparency and accountability. Although this case involved one deputy out of the over one thousand Sheriff’s Office employees, we will not tolerate even a single breach of the public trust we work so hard to earn.”

Perez became the subject of an internal sheriff’s office investigation after it was revealed that he was allegedly implicated in a widespread investigation into inappropriate relationships existing between law enforcement personnel and a police dispatcher’s underage teen daughter.

The original allegations of the misconduct emerged when the Oakland Police Department internal affairs division investigated the suicide of Officer Brendan O’Brien in September of 2015.

Three Oakland police officers have been placed on leave and another two officers have resigned.

Oakland’s police chief Sean Whent also resigned but a connection between the scandal and his exit was never made explicit by police or city officials.

Stay with KRON4 News for the latest in this on-going investigation.Bay City News contributed to this report.