I think you mean vinegar flies or fruit flies. I had that notion, but the article on Wikipedia wasn't much help. It said nothing about getting rid of them. I'm also a bit puzzled because they fed mainly on decomposing vegetable matter, and I don't usually have much of that around the house. What I do produce I usually tie up in a plastic bag before depositing in the trash bin. Of course, insects are far more sensitive to odours than we are, and the 47 molecules that escape the knot may be more than enough to attract a blizzard of fruit flies. It doesn't really matter if they can't get at the stuff and all starve.
I have been confusing these with the real pest, however. Which is a tinier insect that sometimes comes in flour or meal. It doesn't fly, it's dark brown or black, very slim and only about 1 mm. long. They just crawl, but that's good enough for them to get into any sort of bread box I've tried so far. I've taken to keeping my flour in the freezer to keep them out, and have gone back to putting the breadbox back in the fridge. My home-made bread should really be eaten within three days, anyway, so the cool environment doesn't affect the bread all that much unless I've let it sit longer than I should. Still, if the damn beetles, whatever they are, ever disappear, I'll try bringing the bread out again.