If that trick doesn t work you can get a little more aggressive and kill any flies in the compost heap by splashing boiling water onto the compost itself. Keep the pile level instead of letting it pile up in the middle to prevent cooler edges and a warmer center.
The most effective way to make the compost unattractive to flies is to create conditions that will cause it to heat up.
How to get rid of flies in compost pile. Choose a sturdy plastic sheet that is large enough to cover the entire compost pile completely. An overly wet compost with lots of food for the flies will result in them laying their eggs and you ll end up with loads of squirming maggots. Expert gardening advisor susan patterson adds plant basil around your compost pile to repel flies.
Unfortunately a hot compost pile can also quickly become breeding grounds for thousands of flies especially if you are composting manure. Because your kitchen scraps are what s attracting the flies making them less accessible in the pile will help keep your compost pest free. To keep house flies out of your pile simply bury your food scraps further down in your compost pile or cover with a brown material.
If flies are rampantly breeding in your compost it could become a nuisance for you and your neighbors. Several types of flies and some beetles and the offspring of both are transient compost residents. The squirmy larvae of tiny fruit flies and of larger black soldier flies are eager eaters of green compostables like coffee grounds and kitchen waste.
Add dry leaves straw or shredded newspaper to create a higher ratio of carbon to nitrogen. If you see these then it s time to troubleshoot. Boiling the foodstuff before adding it to your compost is another way to make it less attractive for fruit flies.
Cover your compost pile with a plastic sheet or tarpaulin to prevent the flies from entering your compost. Do this when it s time to add water to your compost anyway to prevent the anti fly treatment from getting your moisture level out of balance. Continue this until the larva die and the flies move on.
Consider fruit fly traps fruit fly traps hung above or near the compost pile will attract the flies and prevent them from reproducing. The discovery of maggots in compost isn t the end of your pile and there are things you can do to get rid of them. Adult flies constantly scan the area and lay eggs on good larval food sources.
Layer kitchen scraps or. If you have a problem with flies in compost bin begin by turning and then raking the pile every day. If you re finding that your pile is really infested with fruit flies it s likely that your pile needs more carbon.
Spread the plastic sheet over the compost heap allowing the edges to lie on the ground next to the compost. House flies maggots are the typical looking white maggots that you ve probably seen invading trash cans. You can wrap scraps in butcher paper and add them to your pile in bundles.
Proper compost pile management will help keep fly populations under control.