Fix Visible Temporary Files When Saving Office Files to USB
Question details
The user needs to prevent Microsoft 365 applications from leaving visible temporary (.tmp) files behind when saving documents to a USB flash drive.

- Product
- Microsoft 365 (Word, Excel, PowerPoint)
- Device & OS
- not provided
- Scenario
- Saving Microsoft Office files directly to an external USB flash drive.
- Observed behavior
- When saving files to a USB drive, visible temporary files are created and not automatically deleted by the system. This issue does not occur when saving documents to the local hard drive.
Ensure you have safely closed all active Office documents and backed up any important files from your USB drive to your local computer before changing system security settings or formatting the drive.
Temporarily Disable or Configure Antivirus Software
Antivirus software often scans files as they are written to a USB drive, which can lock the temporary file and prevent Microsoft Office from deleting it after the save is complete.
Third-party antivirus and antimalware programs (such as McAfee) actively monitor external USB ports. When Office writes a .tmp file to the USB during a save, the antivirus immediately scans it. This brief lock prevents Office from automatically removing the .tmp file once the actual document is saved.
Find your antivirus software icon in the Windows system tray (bottom-right corner) and open the main dashboard.
Look for an option to temporarily disable or pause real-time protection (e.g., pause for 15 to 60 minutes) to test the issue.
Open a Word, Excel, or PowerPoint file and save it to your USB drive. Check if the visible temporary file still appears.
If the issue stops, re-enable your antivirus and add your USB drive path or Microsoft Office applications to the antivirus exclusion/whitelist settings. For a permanent patch, you may need to contact your antivirus vendor's support team.

Format the USB Drive to NTFS
Changing the file system of your USB drive from FAT32 or exFAT to NTFS can sometimes resolve file permission conflicts that cause leftover .tmp files.
Save and Manage Your Documents Hassle-Free with WPS Office
If Microsoft Office temporary files continue to clutter your USB drives due to system conflicts, consider switching to WPS Office. It is a highly compatible, free, and lightweight suite that provides a smooth saving experience across local and external storage without leaving messy system files behind.
- 1. Download and Install: Get the free WPS Office installer from the official website and complete the quick installation.
- 2. Open Your Existing Files: Double-click your existing .docx, .xlsx, or .pptx files to open them directly in WPS Office.
- 3. Save Seamlessly: Edit and save your documents directly to your USB drive without worrying about leftover temporary files.

Frequently Asked Questions
Why does Microsoft Office create temporary files in the first place?
Office applications like Word and Excel create .tmp files during the editing and saving process to prevent data loss, enable the AutoRecover feature, and manage system memory. Normally, these files are hidden and are automatically deleted by the application the moment you close the document.
Can I safely delete the leftover .tmp files on my USB drive?
Yes. As long as the original Word, Excel, or PowerPoint document has been successfully saved and is fully closed, you can safely delete the remaining .tmp files from your USB drive to free up space and remove visual clutter.
Why does this temporary file issue only happen on my USB drive and not my local hard drive?
External USB drives often use different file systems (like FAT32) and have slower read/write speeds than internal hard drives. When combined with third-party antivirus software actively scanning external USB ports for threats, the .tmp file gets temporarily locked during the scan, which prevents Office from deleting it after the save is complete.




