Clean the trash can
flies Keep the trash cans well covered during the week, wash them once a week and sprinkle borax inside to keep flies away.
Let them drink until they die
To cope with fruit flies without using chemicals, put an inch of wine, fruit juice, or a mixture of sugar and vinegar into the bottom of a narrow neck bottle. This will attract and drown the bugs.