How to get rid of drain flies at home and prevent them from returning

How to get rid of drain flies at home and prevent them from returning
Scrubbing drains, using enzyme-based cleaners and eliminating standing water can help get rid of drain flies at home and prevent them from returning.