the A pillars are very delicate. remove your weather stripping, watching out for the notch on the forward part of the weather stripping (you'll have to pull down and out to release it).
then unscrew all of the screws in the metal bracket, and lift straight up SLOWLY.
consult the service manual to get a diagram:
2009 370z Service Manual Complete ready to Download!