Fix Duplicate Files After Moving OneDrive to Another Cloud
In this article
To fix duplicate files after migrating from OneDrive to another cloud service, you must first disable the OneDrive sync client to prevent it from recreating files, then use a dedicated duplicate file finder to scan your local migration folder and remove redundant copies based on checksums or file names. This process ensures you only keep one clean version of your data before final synchronization to your new cloud provider.
Moving data between clouds often results in duplicates because of how different systems handle file versioning, metadata, and the "sync-down" process. If you simply copied folders while OneDrive was still active, you likely ended up with files appended with your computer name or "-Copy" in the title. A safe cleanup involves isolating the data from the cloud sync engines first, cleaning it locally, and then uploading the sanitized set to the new destination.
What You'll Need
- A computer with enough local disk space to hold the entire dataset during the cleanup.
- A reputable duplicate file finder tool (such as CCleaner, Duplicate Cleaner, or similar software).
- An external hard drive for a secondary backup before starting the deletion process.
- Stable internet access to verify the final upload to the new cloud.
Step-by-Step
- Create a Full Backup: Before deleting any files, copy your entire migrated folder to an external hard drive. If a duplicate finder accidentally deletes a unique version of a file, you will need this backup to recover it.
- Disable OneDrive Sync: Right-click the OneDrive icon in the system tray (Windows) or menu bar (macOS). Open the settings and select the option to unlink this PC or pause syncing. This prevents OneDrive from attempting to "fix" the folder structure or re-downloading files while you are deleting them.
- Move Files to a Local Non-Syncing Folder: Move your migrated data out of the OneDrive folder and into a standard local folder (e.g., C:\MigrationCleanup). This ensures that no cloud software is monitoring the files, which prevents sync conflicts and "file in use" errors during the cleanup.
- Install and Configure a Duplicate Finder: Open your chosen duplicate file finder. Set the scan criteria to "Content" or "Checksum" rather than just "File Name." This ensures that files with different names but identical content are identified.
- Run the Scan: Select the local migration folder as the target directory and start the scan. Wait for the software to index all files and group the duplicates.
- Review the Selection Method: Use the "Selection Assistant" or "Auto-Select" feature of your tool. Choose a rule such as "Keep the oldest file" or "Keep the file in the folder with the shortest path." Review a few groups manually to ensure the tool is selecting the correct copies for deletion.
- Perform the Deletion: Execute the deletion. It is highly recommended to send the duplicates to the Recycle Bin rather than permanently deleting them immediately.
- Verify Folder Integrity: Browse through your most important folders to ensure that the primary versions of your documents and photos are still present and accessible.
- Upload to the New Cloud: Once the local folder is clean, move the files into the sync folder of your new cloud service or upload them via the web interface.
Common Mistakes
- Deleting while syncing: Attempting to delete duplicates while OneDrive or the new cloud app is actively syncing. This often triggers the cloud to think you are deleting the primary file, which may then be deleted from other devices or the cloud server.
- Relying solely on file names: Trusting a tool that only looks at names. Cloud migrations often rename files (e.g., "Document(1).pdf"), meaning the names differ even though the content is identical.
- Skipping the backup: Starting the cleanup without an external backup. Duplicate finders can occasionally misidentify files if the settings are too broad.
- Cleaning in the cloud interface: Trying to delete duplicates using the web browser interface of the cloud provider. This is incredibly slow and prone to errors compared to local cleanup.
Tips
- Sort by Size: When reviewing duplicates, sort by file size. If two files are identical in size and content, you can be much more confident in deleting one.
- Use Checksums: If your software offers "MD5" or "SHA-1" checksum scanning, use it. This is the gold standard for verifying that two files are bit-for-bit identical.
- Batch Process: If you have terabytes of data, clean one major category (e.g., Photos) before moving to the next (e.g., Documents) to avoid system slowdowns.
Troubleshooting
If the duplicate finder cannot delete a file, it is usually because the file is "locked" by a background process. Restart your computer and try again before any other apps launch. If the file remains locked, ensure that the OneDrive app is completely shut down via the Task Manager (Windows) or Activity Monitor (macOS).
If you find that you have deleted too many versions of a file, do not empty your Recycle Bin. Restore the files from the bin immediately. If the bin was emptied, refer to the external backup created in Step 1.
Frequently Asked Questions
Will this delete my files from the new cloud?
If you perform the cleanup in a local folder that is not currently syncing, it will not affect the cloud. Once you upload the cleaned folder, only the unique files will be stored in the cloud.
Why did I get duplicates in the first place?
Duplicates usually occur when you move files from a synced folder to another synced folder, or when a migration tool creates a copy to ensure no data is lost during the transfer.
Can I use Windows File Explorer to find duplicates?
File Explorer does not have a built-in duplicate finder. You can sort by name or size to find some, but for large migrations, a dedicated tool is necessary to ensure accuracy.
Is it safe to use free duplicate finders?
Most are safe, but always download them from the official developer website. Avoid "crack" versions or unknown third-party installers that may bundle adware.
What happens if two files have the same name but different content?
If you use a content-based (checksum) scan, the software will ignore these files because they are not actually duplicates, even if the names match.