cooking doesn't destroy glycoalkaloids, so both raw and cooked potatoes can carry risk. however, removing the skin from the potato can reduce the toxins. if you want to consume a raw potato, don't choose one that's been in storage for a long time or has visible damage, green skin or sprouts, and peel it before eating.