You open your OneDrive folder and see two copies of the same file: one named ProjectReport.docx and another named ProjectReport-DESKTOP-ABC123.docx. This duplicate file behavior is confusing and wastes storage space. The root cause is a specific conflict resolution feature in OneDrive that appends your computer name when two devices edit the same file simultaneously. This article explains exactly why this happens, how to prevent it, and what to do when you already have duplicates.
Key Takeaways: Stopping OneDrive Duplicate File Creation
- OneDrive sync conflict resolution: Appends your computer name to a file when two devices modify it at the same time
- OneDrive > Settings > Sync and backup > Advanced settings > Files On-Demand: Enables local file availability and reduces accidental edits
- OneDrive > Help & Settings > Pause syncing: Prevents conflicts during collaborative editing sessions
Why OneDrive Appends Your Computer Name to Duplicate Files
OneDrive uses a conflict resolution mechanism to avoid data loss. When two devices both change the same file before OneDrive finishes uploading the first change, the service cannot merge the two versions. Instead, it keeps both copies. The original file retains its name. The second copy gets the suffix -ComputerName where ComputerName is the name of the device that uploaded the later change.
This suffix tells you which device created the duplicate. For example, a file named Budget.xlsx becomes Budget-DELL-XPS15.xlsx if your laptop named DELL-XPS15 saved a conflicting version. This behavior is by design and applies to all files synced through OneDrive on Windows 11, Windows 10, Mac, and mobile devices.
The Conflict Occurs at the Sync Layer
OneDrive monitors file changes using the Windows file system watcher. When you save a file, OneDrive queues the upload. If a second save happens on another device before the first upload completes, OneDrive sees two different file states. It cannot determine which version is authoritative. Rather than overwrite either version, OneDrive creates the duplicate with the computer name suffix.
Known Triggers for Simultaneous Edits
The most common triggers include: working on the same file from two computers at the same time, leaving a file open on one device while editing it on another, and using cloud-synced apps like Microsoft Excel or Word that auto-save frequently. Network lag or a paused sync session also increases the window for conflicts.
Steps to Remove Existing Duplicate Files With Computer Name Suffix
Before preventing future duplicates, clean up the ones you already have. Do not delete blindly. Compare the file versions first.
- Open the OneDrive folder in File Explorer
Press Win + E and navigate to the OneDrive folder in the left pane. Look for files with -ComputerName in the name. - Sort files by Date modified
Click the Date modified column header. This shows the most recent changes first. The duplicate with the computer name suffix usually has a later timestamp. - Open both versions and compare content
Double-click the original file and the duplicate. Review the differences. Use the Compare feature in Microsoft Word or Excel if available. Keep the version with the most complete data. - Rename the surviving file if needed
If you keep the duplicate, right-click it and select Rename. Remove the -ComputerName suffix. OneDrive will treat this as a new file and sync it. - Delete the leftover file
Right-click the unwanted version and select Delete. The file moves to your OneDrive Recycle Bin. Empty the Recycle Bin to free storage space.
How to Prevent OneDrive From Creating Duplicate Files
You can reduce or eliminate duplicate file creation by adjusting sync settings and changing your editing habits. These methods do not require third-party tools.
Enable OneDrive Files On-Demand
Files On-Demand keeps files in the cloud by default. You download a file only when you open it. This reduces the chance of two devices editing the same file simultaneously because the file is not always locally available.
- Open OneDrive settings
Right-click the OneDrive cloud icon in the system tray near the clock. Select Settings. - Go to Sync and backup
Click the Sync and backup tab. Then click Advanced settings. - Turn on Files On-Demand
Under Files On-Demand, check the box Save space and download files as you use them. Click OK.
Pause Syncing During Collaborative Editing
When you know multiple people or devices will edit the same file, pause OneDrive syncing temporarily. This prevents one device from uploading a change while another device is still working.
- Right-click the OneDrive icon
In the system tray, right-click the cloud icon. Hover over Help & Settings. - Select Pause syncing
Choose a pause duration from the menu: 2 hours or 24 hours. OneDrive stops uploading and downloading files during this period. - Resume syncing after editing
Right-click the OneDrive icon again and select Resume syncing. All changes upload in order, reducing the chance of conflict.
Use Microsoft Office AutoSave With OneDrive
Microsoft 365 apps like Word and Excel have an AutoSave feature that saves changes every few seconds. When AutoSave is on and the file is stored in OneDrive, the app coordinates with OneDrive to avoid conflicts. Enable AutoSave by toggling the switch in the top-left corner of the app window.
Common Issues When OneDrive Creates Duplicate Files
OneDrive Creates Duplicates Even When Only One Device Is Active
This can happen if a file is open on a second device that is in sleep mode. Windows 11 and OneDrive may still register the file as locked or being edited. Close files on all devices before moving to another device. Check the OneDrive website to see which devices have the file open.
Duplicates Appear After a Network Disconnection
If your internet drops while OneDrive is uploading a change, the local file may show as modified. When the connection returns, OneDrive sees two versions. To avoid this, wait for the OneDrive icon to show a green checkmark before closing your device or switching networks.
OneDrive Creates Duplicates for Files You Did Not Edit
Some applications auto-save temporary copies of files. For example, a photo editor may save a thumbnail or preview. OneDrive detects this as a change. Reduce this by configuring apps to save temporary files outside the OneDrive folder. Move the app’s temp folder to a local drive path like C:\Temp.
| Item | Files On-Demand | Pause Syncing |
|---|---|---|
| Purpose | Keeps files in the cloud until opened | Stops sync temporarily during editing |
| Effect on duplicates | Reduces accidental simultaneous edits | Prevents upload conflicts during collaboration |
| Storage impact | Saves local disk space | No impact on storage |
| Best used when | Working alone on multiple devices | Multiple people edit the same file |
You now understand why OneDrive appends your computer name to duplicate files and how to prevent it. Enable Files On-Demand and pause syncing during collaborative editing sessions to minimize conflicts. For existing duplicates, compare the versions and delete the unwanted copy. As an advanced tip, set a group policy to disable OneDrive conflict files in enterprise environments using the Turn off OneDrive conflict resolution setting under Computer Configuration > Administrative Templates > OneDrive.