How to Stop OneDrive from Duplicating Local Files After a Reset
Question details
The user needs to prevent and resolve the issue of OneDrive creating large numbers of duplicate files after unlinking and relinking an account.

- Product
- Microsoft OneDrive
- Device & OS
- not provided
- Scenario
- Reconnecting, resetting, or relinking a OneDrive account to a local machine's storage.
- Observed behavior
- OneDrive creates a large number of duplicate local files instead of recognizing and syncing with the existing files in the local directory.
Pause your OneDrive synchronization immediately to prevent further duplicates from being created. Do not delete any files until you have verified your local and cloud folder structures.
Ensure OneDrive is Linked to the Original Local Folder
Relink your OneDrive account to the exact original local folder to force the sync client to merge files rather than duplicating them.
When you unlink and relink your OneDrive account, choosing a different local folder forces OneDrive to download all files again, causing duplicates if your old files are still on the drive. Merging them into the original folder helps the sync client recognize existing data and compare file states properly.
Click on the OneDrive cloud icon in your system tray, click the Gear icon (Help & Settings), and select 'Pause syncing'.
Go to Settings, navigate to the Account tab, and click 'Unlink this PC'. Your files will remain safely on your hard drive.
Sign back into OneDrive. During the setup process, when prompted for the folder location, click 'Change location'.
Navigate to and select the exact original OneDrive folder that contains your previously synced files.
Proceed with the setup. Allow OneDrive to scan the directory and merge the files rather than creating a new folder structure.

Preserve Data and Contact Support
If OneDrive still fails to recognize local files and continues duplicating them despite correct folder mapping, secure your data and seek official technical support.
Manage Your Documents Smoothly with WPS Office
If you are experiencing persistent synchronization issues or file duplication with Microsoft services, consider trying WPS Office. It provides a lightweight, highly compatible, and robust suite for creating and editing your local and cloud documents securely.
- 1. Download the software: Visit the official WPS Office website and click the download button for your operating system.
- 2. Install WPS Office: Run the downloaded installer and follow the on-screen instructions to complete the setup.
- 3. Open and sync files: Launch WPS Office, sign in to activate your free cloud storage space, and begin securely managing your documents.

Frequently Asked Questions
Why does OneDrive append my computer name to duplicate files?
This occurs when OneDrive detects a sync conflict between a local file and a cloud file that share the same name but have different content or sync states. To prevent accidental data loss, it saves both versions and appends your device name to the newer local copy.
Can I safely delete the duplicate files created by OneDrive?
Before deleting anything, ensure that your OneDrive has finished syncing and that the cloud version of the file is the most recent and correct one. It is highly recommended to copy the files to an external backup folder before bulk-deleting duplicates.
How do I completely reset the OneDrive desktop application?
You can reset the application by pressing the Windows key + R to open the Run dialog, typing '%localappdata%\Microsoft\OneDrive\onedrive.exe /reset', and pressing Enter. This clears the sync cache but does not delete your actual files.




