Quick answer
To get rid of flies in a NYC apartment, identify the fly first — fruit flies breed in fermenting produce and recycling, drain flies in the film inside drains, house flies in garbage — then remove that breeding material. Traps and swatting only catch adults; the infestation ends when the breeding source is cleaned out.
Which fly is in your apartment?
Identify before you clean, because each fly breeds somewhere different. Killing adults is temporary; finding the breeding site is the cure. The three flies NYC apartments actually get:
| Fly | Looks like | Where it breeds |
|---|---|---|
| Fruit fly | Tiny, tan, red or dark eyes; hovers near fruit and bins | Fermenting produce, juice/beer residue, recycling, slow drains |
| Drain fly | Small, fuzzy, moth-like; sits on walls near sinks and tubs | The organic film inside drains and overflow pipes |
| House fly | Larger, gray; buzzes at windows | Garbage, organics/compost, decaying matter |
A fourth pattern worth knowing: a sudden indoor swarm of large sluggish flies at a window — often after a smell — points to something dead in a wall or void, which is a different (and very solvable) professional job.
How do you get rid of fruit flies?
Remove the ferment. Fruit fly larvae need the yeast produced by fermentation — ripening fruit, vegetable matter, sugary residue. Cornell’s integrated pest management guidance notes the life cycle can complete in about ten days at warm temperatures and a single female can lay as many as 500 eggs — which is why “a few flies near the bananas” becomes a cloud in two weeks.
The hunt list:
- Produce — refrigerate or eat what’s ripe; check for the rogue onion or potato at the back of the cabinet.
- Recycling and returns — rinse bottles and cans; a beer bottle with a finger of residue is a nursery.
- Drains and drips — wet, crusted residue under the dish rack, a sour mop or sponge, the garbage disposal splash guard.
- Bins — wash the inside of kitchen and organics bins; residue at the bottom breeds flies even with the bag removed.
Then trap the survivors: a small dish of vinegar (or a piece of ripe banana) under a paper funnel or cling film with holes catches adults. Cornell recommends checking traps daily and refreshing bait every few days. When traps stop filling, you’ve won.
How do you get rid of drain flies?
Scrub the film out of the drain — chemicals alone won’t do it. Drain fly eggs and larvae live in the gelatinous bacterial film that coats the inside of drains, overflow pipes and rarely-used traps. Clemson Extension’s fact sheet is explicit: for long-term control the breeding site must be found and removed, and if a drain cleaner with very hot water doesn’t clear it, mechanical cleaning with a stiff brush is required. Spraying the adults you see on the bathroom wall does nothing about the next generation already in the pipe.
The routine:
- Identify the breeding drain — tape a clear cup or tape over suspect drains overnight; the one with flies in the morning is your source.
- Brush the drain walls and the overflow opening with a stiff, flexible brush.
- Flush with very hot water (and an enzyme/foaming drain gel if you like — applied so it coats the pipe walls).
- Run water weekly in unused drains (guest bathroom, floor drains) so traps don’t dry out and films don’t build.
Adults live around two weeks, so a properly cleaned drain goes quiet within days as the survivors age out.
How do you get rid of house flies?
Cut off garbage and keep them out. House flies breed in decaying organic matter — in an NYC apartment building that means garbage, compactor rooms, chute bottoms, and organics bins. In your unit: take trash out frequently, keep lids closed, rinse the bin, and don’t let pet waste or food scraps sit. At the building level, fly pressure in hallways and the trash room is a management problem — compactor areas and shared compost bins need scheduled emptying and cleaning, the same sanitation logic that applies to restaurant pest control. Window screens in good repair handle the rest.
When should you call a professional?
Call in professional fly control when:
- Flies persist after you’ve removed every breeding source you can find — there’s a hidden site, often a wall void, a broken drain line, or under an appliance.
- The source is shared building infrastructure — trash rooms, compactors, drains under the basement slab — that you can’t access or clean.
- A sudden mass of large flies suggests something dead in a wall or ceiling void.
- It’s a recurring summer pattern: fly pressure in NYC peaks June through August (see the pest control calendar), and buildings with chronic issues benefit from preventive sanitation programs.
And since drains, moisture and food residue attract more than flies, an apartment with chronic drain-fly or fruit-fly trouble is also on the shortlist for roaches — worth a read of how to get rid of roaches in an NYC apartment while you’re fixing the underlying conditions.