delete the temp file for edit