remove .tmp file