Open Question: if you eat cook onions in your food everyday will it clean your body of toxins?

I know cooking the onion devalues it's level of nutrtion but if you eat them cookded everyday would that still be good enough for them to do their job of ridding your body of toxins?