OneDrive Deleted Files Reappearing
Resolution Checklist
- 1 Understand why deleted files reappear
- 2 Verify and delete files via OneDrive Web Portal
- 3 Reset OneDrive and force delete on Windows
- 4 Reset OneDrive and force delete on macOS
- 5 Resolve multi-device cache sync loops
- 6 Summary Checklist
OneDrive Deleted Files Reappearing
When files or folders you delete from Microsoft OneDrive keep reappearing, it indicates a breakdown in the synchronization loop. The OneDrive client fails to propagate the deletion event to the cloud, or another linked device detects the file is missing locally and re-uploads its cached copy.
This guide covers the root causes of this sync conflict and provides platform-specific steps to permanently remove reappearing files on Windows and macOS.
Understand why deleted files reappear
The reappearance of deleted files is typically driven by one of the following mechanisms:
- Database Lock: The local OneDrive database is corrupted or in a read-only state, causing delete requests to fail silently.
- Multi-Device Synchronization Loop: A secondary computer, tablet, or phone is syncing an outdated cache and thinks the file needs to be restored to the cloud.
- Local Permission Restrictions: The local file system has locked the file or marked it read-only, preventing the OneDrive process from removing it.
- Third-Party Interference: Anti-malware scanners, backup software, or indexers lock the file during deletion, causing OneDrive to abort the sync event.
Verify and delete files via OneDrive Web Portal
To break a sync loop, you must establish whether the file exists in the cloud authority:
- Open your web browser and sign in to the OneDrive Web Portal.
- Locate the reappearing file or folder.
- Select the file and click Delete from the top command bar.
- Go to the Recycle bin in the left sidebar and click Empty recycle bin.
If the file does not reappear in the web portal, the issue is isolated to your local client’s sync cache.
Reset OneDrive and force delete on Windows
If the local OneDrive database is desynchronized on Windows, resetting the application and force-deleting the files via PowerShell will resolve the loop.
1. Force Quit the OneDrive Client
Open a Command Prompt as Administrator and terminate the OneDrive processes:
taskkill /f /im OneDrive.exe
2. Reset the OneDrive Sync Database
Run the reset command. This forces OneDrive to perform a fresh scan of all files without deleting your local data:
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset
If you receive a “Windows cannot find…” error, execute the system-wide path:
"C:\Program Files\Microsoft OneDrive\onedrive.exe" /reset
If that also fails, use the 32-bit path:
"C:\Program Files (x86)\Microsoft OneDrive\onedrive.exe" /reset
3. Force Delete the Local Files using PowerShell
Open PowerShell and run the following command to bypass file system locks and delete the target file/folder (replace ExampleFolder/File.txt with your actual file or folder name):
Remove-Item -Path "$env:USERPROFILE\OneDrive\ExampleFolder\File.txt" -Force -Recurse
4. Restart OneDrive
Launch the OneDrive client from the Start menu. It will rebuild its index and sync the deletion from the cloud.
Reset OneDrive and force delete on macOS
On macOS, OneDrive integrates with Apple’s native FileProvider framework. If the file provider daemon holds a cached reference to the file, it will keep rebuilding it.
1. Force Restart the macOS FileProvider Daemon
Open Terminal (via Spotlight Search or Applications > Utilities) and run:
killall -9 fileproviderd
macOS automatically respawns this daemon, flushing cached directory trees.
2. Reset the OneDrive Application Cache
Execute the built-in standalone reset script within the OneDrive package:
/Applications/OneDrive.app/Contents/Resources/ResetOneDriveAppStandalone.command
3. Force Delete Local Cache Files
If the file is locked under the modern FileProvider directory (~/Library/CloudStorage), force delete it using Terminal:
- For Personal Accounts:
rm -rf ~/Library/CloudStorage/OneDrive-Personal/ExampleFolder/File.txt - For Business/School Accounts:
rm -rf ~/Library/CloudStorage/OneDrive-Shared/ExampleFolder/File.txt
4. Relaunch OneDrive
Open OneDrive from the Applications folder and sign back in if prompted.
Resolve multi-device cache sync loops
If files continue to reappear after resetting your local client, another linked device is acting as the source of the restore loop:
- Identify the Source: Unlink all other devices (laptops, desktops, tablets) from OneDrive.
- Reconnect Individually: Re-link one device at a time and wait for it to sync fully.
- Reset Stale Clients: If a specific device re-introduces the deleted files when powered on, perform a full
/reseton that client immediately.
Summary Checklist
| Action Item | Verification Method | Status |
|---|---|---|
| Delete Web Copy | Confirm file is deleted and Recycle Bin is emptied on OneDrive Web Portal | [ ] |
| Terminate Client | Run taskkill (Windows) or killall (macOS) to stop the client | [ ] |
| Force Delete File | Use PowerShell Remove-Item -Force or Terminal rm -rf to delete local files | [ ] |
| Reset Sync Engine | Run the /reset switch or standalone command script | [ ] |
| Check Other Devices | Audit secondary laptops, tablets, and phones for stale caches | [ ] |