We show how the flag f-vector of a polytope changes when cutting off any fa
ce, generalizing work of Lee for simple polytopes. The result is in terms o
f explicit linear operators an cd-polynomials. Also, we obtain the change i
n the flag f-vector when contracting any face of the polytope.