Erease run time

Just wonder, is it possible to erase vector graphics run time…

e.g. you have some dirt in one layer (a vector shape), the layer below containing an image, and then “wash” the dirt away with the mouse cursor…

Any help appreciated