make the scratch buffer empty