Updated tmp file delete.