Score around the edges of the plastic molding with a utility knife against the wall to break the caulk seam.
Insert a pry bar between the wall and the plastic molding on your vinyl window. Gently tap the pry bar in a couple of inches using a rubber mallet. Do not strike the pry bar too hard or you may cause the pane to crack in the vinyl window.
Slip a wood shim between the plastic molding and wall, then pull the pry bar out. Move the pry bar about 6 inches down, and tap it in between the wall and molding with your rubber mallet.
Insert another wood shim, then remove the pry bar. Continue this pattern all the way around your vinyl window.
Fit a flat bar into the gaps created by the wood shims, and pry the plastic molding away from the wall around the entire vinyl window.