The method of molecular dynamics computer simulations is employed to study oligomer melts confined in ultra-thin films and subjected to shear. The focus is on the self-diffusion of oligomers near attractive surfaces and on their desorption, together with the effects of increasing energy of adsorption and shear. It is found that the mobility of the oligomers near an attractive surface is strongly decreased. Moreover, although shearing the system forces the chains to stretch parallel to the surfaces and thus increase the energy of adsorption per chain, flow also promotes desorption. The study of chain desorption kinetics reveals the molecular processes responsible for the enhancement of desorption under shear. They involve sequences of conformations starting with a desorbed tail and proceeding in a very fast, correlated, segment-by-segment manner to the desorption of the oligomers from the surfaces.