When two invasive fruit fly species were discovered and threatened crops in California, the United States, authorities decided to release two million sterile male fruit flies to eradicate the winged nuisance.