How do I permanently get rid of stubborn fruit flies at home?

I tried the baking soda, vinegar and soap method but every day there are still some in my bathroom or my mom's or the kitchen. The only thing helping now it's the blue light plug in that kills them any other suggestions? I am so over it

How do I permanently get rid of stubborn fruit flies at home?
Post Opinion