We develop a solution-based nanoscale patterning technique for site-specific deposition and dissolution of metallic nanocrystals. Nanocrystals are grown at desired locations by electron beam-induced reduction of metal ions in solution, with the ions supplied by dissolution of a nearby electrode via an applied potential. The nanocrystals can be "erased" by choice of beam conditions and regrown repeatably. We demonstrate these processes via in situ transmission electron microscopy using Au as the model material and extend to other metals. We anticipate that this approach can be used to deposit multicomponent alloys and core-shell nanostructures with nanoscale spatial and compositional resolutions for a variety of possible applications.