create a black box that sits behind the area you want to delete.
then simply paste another black box over the area you want to update before you update that area.
the difference tho in DBC and DBP is that sprites activate the backdrop and so its not so required.
sync on : sync rate 60 : hide mouse
ink rgb(255,255,0),1
box 0,0,32,32
get image 1,0,0,32,32
cls
disable escapekey : while escapekey()=0
rem you could forgoe this black box in DBP
ink rgb(0,0,0),1 : box 0,0,64,32
ink rgb(255,255,255),1
r = r +1 : text 1,1,STR$(r)
sprite 1,mousex()-16,mousey()-16,1
sync : endwhile
end