Why Excel Creates a Temporary File When Saving and How to Fix Lingering Files
Question details
The user wants to understand why Microsoft Excel creates temporary files during the save process and how to resolve issues where these files fail to delete automatically.

- Product
- Microsoft Excel
- Device & OS
- Windows
- Scenario
- Saving a workbook in Microsoft Excel
- Observed behavior
- Excel generates temporary files in the local directory during the save process. Sometimes, these temporary files linger and clutter the folder due to system interruptions or software conflicts.
Before troubleshooting, verify whether the temporary files remain in the folder after you have completely closed Excel, as temporary files created during an active session are a normal part of Excel's recovery mechanism.
Test Excel in Safe Mode and Disable Add-ins
Running Excel in Safe Mode prevents third-party add-ins from loading, helping you identify if an extension is blocking Excel from deleting its temporary files.
Temporary files are a core function of Office applications used for file protection and recovery during a save operation. If these files do not disappear after closing the document, a conflicting add-in might be interfering with the final deletion step.
Press the Windows key + R on your keyboard to open the Windows Run dialog box.
Type 'excel /safe' into the text box and press Enter. Excel will open in Safe Mode with add-ins disabled.
Open a workbook, make a small change, and save it. Close the workbook and check if the temporary file disappears from the folder.
If the temporary file successfully deletes in Safe Mode, restart Excel normally. Go to File > Options > Add-ins, and disable third-party add-ins one by one to identify the culprit.

Check Antivirus Software Interference
Overzealous antivirus scans can lock temporary files while scanning them during the save process, which prevents Excel from properly deleting them.
Perform a Windows Clean Boot
A Clean Boot starts Windows with a minimal set of drivers and startup programs to isolate background services that might be conflicting with the Excel save process.
Try WPS Office for Smooth and Fast Spreadsheet Management
If troubleshooting Excel's complex file-saving mechanisms and lingering temporary files is slowing you down, consider switching to WPS Office. It provides a lightweight, highly compatible spreadsheet editor that respects your system resources and manages background processes efficiently.
- 1. Download and install: Visit the official WPS Office website to download and install the free software on your device.
- 2. Open your files smoothly: Launch WPS Spreadsheets and simply open your existing Excel workbooks to continue your work without formatting loss.
- 3. Enjoy seamless saving: Edit and save your documents effortlessly, benefiting from a streamlined file management system.

Frequently Asked Questions
Can I completely disable temporary files in Excel?
No, temporary files cannot be completely disabled. They are a core function of Office applications designed to protect your data, prevent corruption, and support auto-recovery features during the save process.
Where are Excel temporary files stored?
Excel typically creates these temporary files in the exact same directory as the original workbook during the saving process. Once the save is fully complete, Excel is programmed to automatically delete them.
Why do temporary files stay in my folder after closing Excel?
Lingering temporary files usually occur when a third-party add-in, real-time antivirus scan, or a network sync delay interrupts Excel's saving process, preventing the application from executing the final deletion command.
Is it safe to delete lingering Excel temporary files manually?
Yes. If Excel is completely closed and you have verified that your original workbook is successfully saved, you can safely delete any leftover temporary files (which often start with a tilde '~' or have a '.tmp' extension) manually.




