I am painting images of a Canvas with a GC (of course) but after I had repainted a new frame with new imaged I need to delete the previous but I don't know how.

I want to dispose the data on the canvas and then redraw the frame but I don't know how.
Anyone knows how can I dispose the data on the canvas without disposing the canvas itself?