cara menghapus rect di kanvas html

ctx.clearRect(p,q,width,height);
it's Devyansh