Deposition of silica microparticles on glass substrates was measured as a function of cationic polymer-anionic surfactant composition and shear rate. Particles were initially deposited in quiescent conditions in different polymer-surfactant compositions, which were chosen based on prior measurements of composition-dependent polymer-surfactant interactions and deposition behavior (up to 0.5 wt % polymer and 12 wt % surfactant). Programmed shear and dilution profiles in a flow cell together with optical microscopy observation were used to continuously track particle deposition, detachment, and redeposition. Knowledge of the shear-dependent torque on each particle provides information on adhesive torque mediated by polymer-surfactant complexes. Detachment of colloids initially deposited by depletion interactions occurs at low shear rates (∼100 s-1) due to lack of tangential forces or an adhesive torque. Further dilution produced redeposition of particles that resisted detachment (up to ∼2000 s-1) as the result of strong cationic polymer bridge formation, presumably due to preferential surfactant removal. Dilution from different initial compositions indicates a pathway dependence of polymer-surfactant de-complexation into shear-resistant cationic bridges. These findings demonstrate the ability to program deposition behavior via the informed design of initial polymer-surfactant compositions and shear profiles. The particle trajectory analysis developed in this work provides an assay to screen composition-dependent colloidal deposition in diverse materials and applications.