The incumbent district attorney was accused of leaking sealed documents that detailed prior accusations of sexual assault leveled against his opponent, Boston City Councilor Ricardo Arroyo.
Interim Suffolk County District Attorney Kevin Hayden has defeated Boston City Councilor Ricardo Arroyo in Tuesday's primary after a bruising campaign.
Attorney General Maura Healey became the last Democrat standing in the primary when state Sen. Sonia Chang-Diaz dropped out of the race in June making.
The documents show that three months after the case was first opened in November 2005, a Suffolk assistant district attorney sent an email closing out the investigation.