Pete has put it very well. I assure you that the impact on ecosystems would be drastic. We would lose untold treasures and valuable resources. Also, what kind of flies? You could go to the nearest garden or farm and find flies from a millimetre long to a cm or more. Flies that eat caterpillars, dung, flies, ants, carrots, weeds, fruit, living flesh, dead flesh...
Let's assume you mean house flies and bush flies? Do you hate them while they are tickling you, or while they are recycling your refuse into valuable compost, or feeding your chameleons and wagtails?