Topological dislocations and stacking faults greatly affect the performance of functional crystalline materials1-3. Layer-stacking domain walls (DWs) in graphene alter its electronic properties and give rise to fascinating new physics such as quantum valley Hall edge states4-10. Extensive efforts have been dedicated to the engineering of dislocations to obtain materials with advanced properties. However, the manipulation of individual dislocations to precisely control the local structure and local properties of bulk material remains an outstanding challenge. Here we report the manipulation of individual layer-stacking DWs in bi- and trilayer graphene by means of a local mechanical force exerted by an atomic force microscope tip. We demonstrate experimentally the capability to move, erase and split individual DWs as well as annihilate or create closed-loop DWs. We further show that the DW motion is highly anisotropic, offering a simple approach to create solitons with designed atomic structures. Most artificially created DW structures are found to be stable at room temperature.