Jains don’t eat foods like onions and potatoes. But, so far as I know, this is on account of the bugs that may be harmed when harvesting soil-based plants.
I believe it's also as the onion or potatoe is the entire plant and when you eat it, it's gone. Verses eating a strawberry or Apple does not destroy the plant.