During the summer, it is common to have lots of small flies around your trash area and flying around your apartment. I happened upon a remedy.
Near your garbage, lay out a large zip lock bag. Inside the bag, put a small container filled with red wine or fruit vinegar (two containers, one of each is best) and add a drop of dish detergent, then crinkle the bag so it stays slightly open.
The fruit "smell" will quickly attract the flies. Most will drown.
All you have to do to completely rid your apartment of "no see 'ums" is to occasionally close the bag and "smash" them. OR, you can take them outside and let them go.
Soon you will be rid of all of them. Until the next time.