 Here's the best way to get rid of fruit flies, and you really need to because they can cause serious food poisoning. All you need to do is put vinegar and a couple of drops of soap in a bowl, cover it with cling wrap, and poke holes into it. And keep your kitchen as clean and dry as possible to prevent infestation. Just one fruit fly can lay up to 2,000 eggs on anything that's moist and rotting, which can be a lot of places in your home. And don't even waste your time doing these two things.