Fourteen magnets hold the front glass panel in place. Our suction cups were very handy for this operation.
The glass panel comes off with a gentle pull straight up.
The rear of the glass has a metallic bezel, as well as seven alignment posts. The magnets that help hold the glass in place are in the iMac's aluminum front bezel.