Use insecticide
This is one of the most effective and simple ways to kill fruit flies in the toilet. You just need to use insect spray to quickly get rid of them from home. You use insecticide and mix it with a little water, then use a pressure sprayer or ULV sprayer to spray all over the house, wet places of the house such as bathrooms, toilets, and wet holes.
Kill the weeds, kill the root. Fruit flies live and lay eggs in your home's sewers and drains. By pouring insecticidal chemicals into the pipes where the fruit flies live, the eggs and larvae of the fruit flies will be destroyed. Thus, fruit flies cannot survive to adulthood and fly out. This method helps to kill quickly, neatly and without much effort, but you must be very careful when using specialized spray equipment and choosing the right disinfectant.