How to Remove ~$ Temporary Excel Files in SharePoint
Question details
Users are seeking an explanation for why Excel files prefixed with ~$ appear in SharePoint following a file migration, even when these files appear to be missing from the original source folder.

- Product
- SharePoint and Microsoft Excel
- Device & OS
- Windows
- Scenario
- Migrating files from a local Windows directory to a SharePoint document library using a migration tool.
- Observed behavior
- Hidden temporary owner lock files (beginning with ~$) are captured during the migration process and displayed as visible items in the destination SharePoint library.
Ensure you have the necessary edit permissions to view, manage, and delete files in both your local Windows source folder and the destination SharePoint document library.
Delete Temporary ~$ Files Directly in SharePoint
Since these files are remnants of incomplete saves, they are safe to delete directly from SharePoint if your original data files are intact.
Files beginning with ~$ are temporary lock files created by Microsoft Office while a workbook is being edited. If the file was not saved correctly or left open during migration, the SharePoint Migration Tool (SPMT) captures and uploads them as independent files.
Log in to your SharePoint site and navigate to the specific document library where the migrated files are stored.
Scroll through the library or use the search bar to find any files whose names start with the ~$ characters.
Select the temporary files by clicking the checkmark next to their names, click the three-dot menu (Show actions) at the top, and choose 'Delete' to remove them permanently.

Reveal Hidden Items in the Source Windows Folder
Check your local Windows folder to identify and clear hidden temporary files before performing future migrations.
Try WPS Office for Seamless Spreadsheet Management
Avoid messy temporary files and complex troubleshooting. WPS Office provides a lightweight, highly compatible alternative to Microsoft Excel, offering seamless editing and auto-saving without leaving orphaned lock files scattered in your folders.
- 1. Download and Install: Visit the official WPS website to download and install the free WPS Office suite.
- 2. Open WPS Spreadsheets: Launch WPS Office and click on the 'Spreadsheets' module.
- 3. Edit Your Files: Click 'Open' to select your existing Excel files and continue working without compatibility issues.

Frequently Asked Questions
What exactly is a file starting with ~$?
It is a temporary owner lock file created by Microsoft Office when a document is opened. It keeps track of who is currently editing the file to prevent conflicts and data overwriting.
Why do ~$ files stay in the folder after I close Excel?
Normally, these files are deleted automatically when you save and close the workbook properly. However, if the program crashes, loses its network connection, or is forced to close unexpectedly, the temporary file may remain orphaned in the directory.
Can I prevent the SharePoint Migration Tool from uploading these temporary files?
Yes. Before running a migration, ensure all Office files are properly closed. You can also configure the SharePoint Migration Tool (SPMT) settings to exclude specific file types or hidden files to prevent them from transferring.




