A time-tested formula can help you get rid of houseflies. Vinegar is a multipurpose cleaning solution and housefly trap.
Dish soap and vinegar in a bowl with clingfilm on top will attract and collect insects that may be released or disposed of later
In addition to this basic mixture, there are various ways to repel flies. Sticky traps can be added to cider vinegar and soap dishes.
You may hang these anyplace in the house to trap flies. The traps kill flies.
Cayenne pepper and water also works. Mixing a small amount of this spice with water in a spray bottle repels pests, according to Healthline.
When dealing with flies, you must destroy existing pests and repel prospective ones.