Drain flies are not a harmful breed of flies and despite of the fact that they come from drains, they do not transmit human diseases. And because of this, they have become an integral part of many water dependent ecosystems.
Drain Flies also known as moth or sink flies are a common nuisance in homes. These flies live and breed in the organic matter present inside moist drains and hence they are mostly found in kitchens and bathrooms.

Although they are harmless but their presence in your bathroom or kitchen make you feel irritations.
LIFE CYCLE OF DRAIN FLY:

Adults can be spotted resting on walls and ceilings of the infested areas. Another important thing about them is that they do not bite.
Drain Flies are typically nocturnal insects and are associated with damp habitats. They are not very good at flying insect; they fly in a jerky, irregular pattern.
They can intensify bronchial asthma in some people.
To kill these adult drain flies you could use sprays, or swatters. Below is a list of some methods that you can use to kill the adult drain flies.
You could use chemical sprays to kill the mature drain flies. But the problem with chemical sprays is that they are toxic and hence cannot be used if the infested area is kitchen.