"Pouring a cup of bleach down your drain is sure to kill any flies in the area, although you may need to repeat this a few times to eliminate them all." You can also buy commercial drain cleaners ...
If you notice fruit flies in your drain, you might be looking for an instant fix - like pouring bleach down the drain. But ...