The Oriental fruit fly has successfully been eradicated from an 118-square-mile area of San Joaquin County, Calif., that includes the city of Stockton.

The eradication effort used a male annihilation technique, where workers squirt a small glob of fly attractant mixed with a minute amount of pesticide on street trees, light poles and similar surfaces, according to a news release.

Male flies are attracted to the mixture and die after walking on it or consuming it.

A quarantine was enacted on Sept. 8, 2011, after county pest detection efforts picked up two flies in a trap in north Stockton.

Oriental fruit flies are known to target more than 230 different fruits, vegetables and plant commodities.

Eggs laid by females in the fruit hatch into maggots, which feed on the fleshy parts, rending them unmarketable.