WARNING: This page is about a different car, the 2007 Nissan Pathfinder. However, it is still accessible from the selected car via links, so may be relevant.
Open the sunroof.
Remove screws from the left, center, and right side wind deflector holders.
Fig 1: Locating Wind Deflector And Screws
Remove the wind deflector from the sunroof frame assembly.