How to Troubleshoot Sync Client Keeps Downloading Deleted Files
🔍 WiseChecker

How to Troubleshoot Sync Client Keeps Downloading Deleted Files

The OneDrive sync client or SharePoint sync client may repeatedly download files you have already deleted from your local folder. This often happens because the sync engine detects the file as new or changed on the server and pulls it down again, even after you remove it from your device. The root cause is usually a conflict between local deletion rules, sync metadata corruption, or a sync relationship that still points to the file in the cloud. This article explains why the sync client keeps downloading deleted files and provides clear steps to stop the behavior permanently.

Key Takeaways: Stop Sync Client from Re-Downloading Deleted Files

  • OneDrive Settings > Files On-Demand: Ensures files are not automatically downloaded when you delete them locally.
  • Sync client > Stop sync > Restart sync: Resets the sync relationship and clears the download queue.
  • Clear OneDrive cache: Removes stale metadata that forces re-download of deleted files.

ADVERTISEMENT

Why the Sync Client Downloads Files You Already Deleted

The OneDrive sync client uses a local database to track which files are synced and their status. When you delete a file from your synced folder, the sync client sends a deletion request to the cloud. However, if the cloud version of the file is marked as new or if the sync client loses track of the deletion request, the file reappears during the next sync cycle. This can happen for several reasons:

Sync Metadata Corruption

The sync client stores metadata in a hidden folder called .one or OneDrive in your user profile. If this metadata becomes corrupted, the client no longer remembers which files were deleted. It treats all cloud files as new and downloads them again.

Conflicts with Files On-Demand

When Files On-Demand is enabled, files appear as placeholders until you open them. If you delete a placeholder file, the sync client may still see the cloud copy as active and re-download it. This is especially common when the deletion happens while the sync client is paused or offline.

Multiple Devices Syncing the Same Library

If you have the same SharePoint document library synced on multiple computers, deleting a file on one device does not prevent the other device from downloading it again. The second device sees the file as a new addition from the cloud and syncs it down.

Steps to Stop the Sync Client from Downloading Deleted Files

Follow these steps in order. Test after each step to see if the problem stops.

  1. Pause and resume sync
    Right-click the OneDrive icon in the system tray. Select Pause syncing and choose 2 hours. After 2 hours, sync resumes automatically. This clears temporary download queues. Check if deleted files reappear.
  2. Stop syncing the library and restart it
    Open OneDrive settings by right-clicking the OneDrive icon and selecting Settings. Go to the Account tab. Under Choose folders, find the SharePoint library that is causing the issue. Click Stop sync. Restart OneDrive. Then go back to Choose folders and select the library again to restart syncing. This rebuilds the sync relationship and removes stale metadata.
  3. Disable Files On-Demand temporarily
    In OneDrive Settings, go to the Sync and backup tab. Uncheck Save space and download files as you use them. Click OK. Wait for all files to download. Delete the unwanted files again. Re-enable Files On-Demand after the sync queue clears.
  4. Clear the OneDrive cache
    Close OneDrive completely. Press Windows + R, type %localappdata%\Microsoft\OneDrive\, and press Enter. Delete all files and folders inside this folder except settings and logs. Restart OneDrive. It will rebuild the sync database and re-download only files that exist in the cloud.
  5. Reset OneDrive
    Press Windows + R, type %localappdata%\Microsoft\OneDrive\onedrive.exe /reset, and press Enter. Wait 60 seconds. If OneDrive does not restart automatically, press Windows + R again and type %localappdata%\Microsoft\OneDrive\onedrive.exe. This resets all sync connections and clears all cached metadata.

ADVERTISEMENT

If the Sync Client Still Downloads Deleted Files

If the problem persists after the steps above, the issue may be related to SharePoint document library versioning or a conflict with third-party antivirus software.

SharePoint Versioning Causes Files to Reappear

When a file is deleted from a SharePoint document library, the library sends a deletion command to the sync client. However, if versioning is enabled and a previous version is restored by another user, the file becomes active again. The sync client then downloads it. To check this, go to the SharePoint library in a browser. Click the settings gear icon and select Library settings. Under Versioning settings, verify that Keep the following number of major versions is set to a reasonable limit. Also check the recycle bin: if the file is in the first-stage recycle bin, it can be restored automatically by some backup tools.

Antivirus Software Interfering with Sync

Some antivirus programs lock the sync client’s local database, causing it to fail to record deletions. When the sync client restarts, it sees the cloud file as new and downloads it. Temporarily disable real-time file scanning for the OneDrive folder. The default location is C:\Users\YourName\OneDrive. If the problem stops, add an exclusion for the OneDrive folder in your antivirus settings.

Multiple Users Editing the Same File

If a file is deleted by one user but another user has the file open in an Office app, the sync client may not register the deletion. The file remains in the cloud and gets re-downloaded. Ensure all users close files before deletion. Use the SharePoint admin center to check for file locks.

Item Reset OneDrive Clear Cache Manually
What it does Removes all sync connections and rebuilds the database Deletes metadata files but keeps settings
Time required 5 minutes plus initial sync 10 minutes plus initial sync
Data loss risk None — files remain in cloud None — files remain in cloud
Best for Recurring re-download after every deletion One-time re-download after a single deletion

After applying the reset or cache clear, the sync client will download only the files currently present in the cloud. Deleted files should not reappear unless they are restored by another action. Monitor the sync activity icon in the system tray for the first hour to confirm the behavior stops.

ADVERTISEMENT