If you find slimy or discolored onions, immediately separate them from the others and throw them away. It is also not advisable to eat these, as they are rotten and can damage your health. In warmer places, onions can sprout and it is alright to eat the sprouted ones, as health experts term them safe for consumption if they have a green center.