Fruit flies can be an annoyance if not managed properly. Fruit flies are attracted to exposed food waste in your worm bin. The first defense against fruit flies is to make sure all food waste is buried under the bedding. If you already have a bad infestation, remove the top two-inch of the bedding. This will rid of any fruit fly eggs in your bin.