- Move your compost to a larger volume of compost. The heat from a larger compost will kill off larvae.
- Dig a hole and bury the contents with the larvae and cover with a foot of soil.
- Reduce moisture content so fewer flies are drawn to your compost. Use things like office paper shreds, straw or brown leaves.