hey guys.. anyone give me an idea how to remove the rubber on say the rear window or front window?

rubber im talking about is the surrounding on the glass. i think its glue'd so do i just pull it out? or is there clips?

thanks.