OneDrive File Issues

How to Stop OneDrive from Duplicating Local Files After a Reset

Aamir Naveed AkramAamir Naveed Akram Nov 3, 2026 871 views

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.

How to Stop OneDrive from Duplicating Local Files After a Reset
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.
Before you start

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.

Solution 1Recommended

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.

1
Pause synchronization

Click on the OneDrive cloud icon in your system tray, click the Gear icon (Help & Settings), and select 'Pause syncing'.

2
Unlink the PC

Go to Settings, navigate to the Account tab, and click 'Unlink this PC'. Your files will remain safely on your hard drive.

3
Sign in and change location

Sign back into OneDrive. During the setup process, when prompted for the folder location, click 'Change location'.

4
Select the original folder

Navigate to and select the exact original OneDrive folder that contains your previously synced files.

5
Confirm the merge

Proceed with the setup. Allow OneDrive to scan the directory and merge the files rather than creating a new folder structure.

Ensure OneDrive is Linked to the Original Local Folder
File Merging Prompt: OneDrive will display a prompt saying 'Files already exist in this folder'. Confirm that you want to use this location to successfully merge the files without duplicating them.
Free Microsoft Office alternative

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. 1. Download the software: Visit the official WPS Office website and click the download button for your operating system.
  2. 2. Install WPS Office: Run the downloaded installer and follow the on-screen instructions to complete the setup.
  3. 3. Open and sync files: Launch WPS Office, sign in to activate your free cloud storage space, and begin securely managing your documents.
Fully compatible with Microsoft Word, Excel, and PowerPoint file formats (.docx, .xlsx, .pptx).Built-in WPS Cloud service provides a safe, alternative way to sync and back up your files without duplicate errors.Lightweight installation that runs smoothly and quickly on almost any device.Familiar and intuitive user interface makes migrating incredibly easy.
QA img-9

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.