While cooking methods like boiling, baking, or frying may reduce solanine content to some extent, they cannot eliminate it completely. The heat stability of solanine means that even cooked potatoes can retain significant levels of the toxin. Therefore, it's crucial to prepare potatoes carefully, removing any sprouts and green areas before cooking.