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