It is my experience that GRASS calls the file $GISBASE/etc/clean_temp when
GRASS is exited to delete any .tmp files created during the session; I
copied it to my local 'bin' directory and occasionally use it to clean
things up. You can also exit & then re-enter GRASS to get the same results.