Remove temporary file and ignore future temp and swap files.