You throw away my outside, you cook my inside. Then you eat my outside and you throw away my inside. What am I?

Image of Riddle Question

Can you solve this riddle without clicking that tempting answer button?