Surfactant templated silica thin films were self-assembled on solid substrates by dip-coating using a partially fluorinated surfactant R<sub class="stack">8sub><sup class="stack">Fsup>(EO)<sub>9sub> as the liquid crystal template. The aim was 2-fold: first we checked which composition in the phase diagram was corresponding to a 2D rectangular highly ordered crystalline phase and second we exposed the films to sc-CO<sub>2sub> to foster the removal of the surfactant. The films were characterized by in situ X-ray reflectivity (XRR) and grazing incidence small angle X-ray scattering (GISAXS) under CO<sub>2sub> pressure from 0 to 100 bar at 34 °C. GISAXS patterns reveal the formation of a 2-D rectangular structure at a molar ratio R<sub class="stack">8sub><sup class="stack">Fsup>(EO)<sub>9sub>/Si equal to 0.1. R<sub class="stack">8sub><sup class="stack">Fsup>(EO)<sub>9sub> micelles have a cylindrical shape, which have a core/shell structure ordered in a hexagonal system. The core contains the R<sub class="stack">8sub><sup class="stack">Fsup> part and the shell is a mixture of (EO)<sub>9sub> embedded in the silica matrix. We further evidence that the extraction of the template using supercritical carbon dioxide can be successfully achieved. This can be attributed to both the low solubility parameter of the surfactants and the fluorine and ethylene oxide CO<sub>2sub>-philic groups. The initial 2D rectangular structure was well preserved after depressurization of the cell and removal of the surfactant. We attribute the very high stability of the rinsed film to the large value of the wall thickness relatively to the small pore size.