The best way to get rid of fruit flies. Take a piece of fruit (apple core, a bit of apple sauce, banana peel, even some apple cider vinegar works) and put it in a jar with a little water. Make a cone/funnel with a sheet of paper & tape it into the top of the jar. Flies go in after the fruit but can't get back out. This worked when my kids knocked a banana down under the pantry shelves & it totally decomposed filling my pantry with these horrid pests.