Do not throw a cut onion into a plastic bag. Just a loose bag. No knot. No twist tie.
This is the nuclear option. Your fridge will smell like a war crime. Your milk will taste like a salad bar.
You will open the door and gasp. Your family will hold their noses. Don’t do it.