Daily tips Plant of the day What's on What to plant Garden help

Home › Garden pests › Onion fly

Garden pests

Onion fly

Delia antiqua · Insect

Also called onion maggot (USA and Canada).

Onion fly (Delia antiqua), illustration

Illustration

Onions, shallots, leeks, garlic and chivesFly (maggots in roots and bulbs)Spreads by flying adults, and maggots or pupae in soil and plants

A small grey fly whose white maggots eat the roots of onions, shallots and leeks and bore into the bulbs, killing seedlings and destroying bulbs. Cover the crop with fine insect mesh, rotate beds and destroy infested plants; it is not found in Australia or New Zealand, where a suspected find should be reported.

How to spot it

Easily confused with

Allium leaf miner

Its maggots feed inside the leaves, bore down into the stem and bulb, and pupate there; onion fly maggots feed on the roots, not within the leaves, and pupate in the soil.

Seedcorn maggot (bean seed fly)

A very similar fly and maggot that also attacks beans, sweet corn and other crops. The adult has three dark stripes on its back; onion fly has five.

Onion white rot

White, fluffy mould on the base of the bulb and the roots, dotted with tiny black specks like poppy seeds, and no maggots.

Where it's a problem

What to do

  1. Cover onions with fine insect mesh or row cover from planting, edges secured, in a bed where onions didn't grow last year: flies coming out of the soil would otherwise be trapped underneath.
  2. Rotate: grow onions and their relatives in a different bed each year.
  3. Grow onions and shallots from sets rather than seed: the bigger young plants survive the first generation of maggots better.
  4. Pull up and destroy wilting or damaged plants, maggots and all, as soon as you see them, so the maggots can't finish growing.
  5. After harvest, clear away leftover onions, roots and plant debris rather than leaving them in the bed.
  6. Encourage birds, hedgehogs and ground and rove beetles, which prey on onion fly.

In Australia and New Zealand, report it rather than treating it. Elsewhere, if you use an insecticide, choose one labelled for onion fly and follow the label and local rules. Sources say nothing rescues a crop once the maggots are feeding, so prevention is what works.

Vegetables it affects

ChivesOnionsSpring onionsLeeksGarlic
Not sure it's this one? Scan it free All garden pests

Free account, no card needed. You sign up or sign in first, then the scanner opens.

Sources

Facts checked Wednesday 21 October 2026. General guidance only: follow your local council, agency and product label.

Not sure which pest it is?

Photograph it and Bozlea tells you what it is and what to do. Free to start. No card needed.

Scan it free