Has anyone had flies (fruit flies or Phoridae flies)

I’m unsure whether it’s a fruit fly or a Phoridae fly, although I believe it’s actually Phoridae flies. But did anyone have problems with them living in their drains?

If so what actually worked for you to get rid of them and how long did it take?