You can get rid of flies using DIY vinegar fly traps, using herbs like basil, and removing food sources. Some of the best fly traps and insecticides include adhesive traps, bait traps, light traps, ...