Eliminating the organic matter in your drain will help reduce or eliminate a phorid fly infestation. However, not all drain cleaners are the same. Some are specially designed for phorid flies.