Some plants can help get rid of flies, and they even act as insect repellents. Some of the best plants to grow are tansy, lavender, chrysanthemum, and marigold.

If you can, it would be best also to grow a Venus flytrap since this plant is known as a carnivorous one that loves to munch on flies, which is an effective way to get rid of flies that causes maggots.

Growing new plants will not only beneficial for your compost bin but will also add beauty to your garden.