What is a good way of keeping fresh produce (in particular, from the garden) and herbs in the kitchen without attracting fruit flies? We dispose of tomatoes etc as soon as they start to go bad, but it seems like leaving out the produce that would be kept out is attracting fruit flies.

There weren't fruit flies before so I am wondering if there might be a better way (ie a ventilated canister?) of keeping the produce?

6 Answers 6


I've never had luck keeping them out of food. Sealed containers work, but cause fruit to ripen and spoil quickly, and they are small enough to get in anything with an opening.

However, a simple fruit fly trap can keep them in check:

Cut a 2l soda bottle where the top taper ends (above the label). Add a few drops dish soap to a few tbsp of apple juice, beer or cider vinegar. Pieces of fruit can also be used. Invert the severed top of the bottle (sans cap), and seal with a piece of duct tape around the edge.

Set near the fruit and wait. Open it up to empty every few days.

Google will give you a variety of other designs that you can build if you are more ambitious.

  • Heh nice trap instructions. I'll try that tomorrow as we have a bit of a fly problem at the moment. Thanks!
    – octonion
    Commented Aug 2, 2010 at 23:20
  • 1
    I found that fruit flies get good at getting out after a while, and making an opening as small as possible by making a paper cone and taping that to the bottle entrance works better. Commented Nov 2, 2012 at 16:55

Flies can lay eggs and continue to emerge even after the produce that attracted them in the first place is already gone. After getting rid of the produce the next time, wipe the area down with a kitchen cleaning spray and wait to see if more flies appear. If not, then give it a go again and keep an eye on the progression of the produce, refrigerating it if it is getting softer than you expect before you get around to using it.

Oftentimes the fruit flies are traveling with the produce (microscopic eggs) so try washing things like tomatoes, peaches, etc. first before setting out on the counter/shelves.


I personally am using balsamic vinegar and dish soap. Because I have so many tomatoes and peppers all at once they are laying on the counter so I have put this into tiny plastic bowls (2-3 in diameter from the dollar store) and placed them among the fruit. So far it seems to help. There are still a few but nothing like it was.


Mesh cover to put over the food container will keep out flies if placed correctly.




Place the produce on the counter-top or on a plate, and then, use a upside-down "mesh-type" colander as a lid to keep the produce covered.

Flies wont be able to get in, but there will be enough ventilation.

Depending on the produce, you can obviously also store it in the fridge (not tomatoes).


This is a trick I've learned since I home-brew kombucha- same method of keeping flies out. Get a larger bowl or a pot and put the fruit in gently. Then throw a kitchen towel over the top and secure with a couple tight rubber bands around the top of the pot/bowl. Make sure no fruit flies are on the fruit when the rubber band is secured. This should keep them out, I'd just check the fruit once a day to check on ripeness and when the fruit is ripe, move it to the fridge. I currently have 3 bowls going right now after my husband came home with 2 large crates one of peaches and one of plumbs. I have probably 45 plumbs in one container and 15 in each of the others, and so far all is fine and happy- fly free!

  • The question is about fresh produce
    – user34961
    Commented Jun 20, 2018 at 13:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.