OneDrive: How to detect and remove duplicate folders and files

Last update: 31/03/2026

  • OneDrive does not offer a complete native tool to find and delete duplicate files; it only handles basic name conflicts in the same folder.
  • Many “duplicate folders” in Windows are actually duplicate listings caused by registry keys, not actual copies of data.
  • Duplicates are usually caused by synchronization conflicts, backups from multiple devices, and manual file migrations.
  • The combination of manual review, credential adjustments, and third-party tools allows you to clean OneDrive without losing important information.

If you use OneDrive daily, sooner or later you'll run into duplicate folders, repeated files, and conflicting versions They take up space and clutter everything. Sometimes they're copies with the suffix "-copy", other times they have the computer's name at the end, and in other cases it looks like you have two OneDrive folders in File Explorer when it's actually the same one.

In this article you will see, in great detail, What types of duplicates can OneDrive generate, why do they appear, and how to delete themThis applies to files, folders, and even "duplicate" icons in Windows. We'll also review myths (such as the supposed native "Find and delete duplicate files" option on the OneDrive website), third-party tools that actually work, and more. Precautions you should take before touching anything delicate such as the Windows registry or credentials.

Does OneDrive actually duplicate folders or does it just appear to?

Does OneDrive duplicate folders, or does it just appear to?

The first thing is to distinguish whether you are facing Are the folders actually duplicated, or are they just duplicate entries? in the interface. Many users are alarmed to see two OneDrive icons in the left panel of File Explorer or two seemingly identical folders under "This PC", when in reality it is the same content displayed twice.

In these cases, the problem is usually a display error in Windows Explorer And it's not a physical copy of your data. You're not wasting twice the disk space; you're just seeing the same site repeated. It's important to understand this before you start deleting or moving folders, because you could end up breaking synchronization if you act impulsively.

It is also common that, when changing computers or installing a new version of Office or OneDrive, a second local folder of the type appears OneDrive – CompanyName or OneDrive – PersonalHere there may be reasonable doubts about whether data is being duplicated on the disk and whether there are overlapping synchronizations.

A good starting point is to check the OneDrive website to see if, in addition to the supposed local duplication, There really are duplicate folders in the cloudIf you only see one icon on onedrive.live.com, but two icons appear in Windows, it's almost certainly a visual or registry problem, not duplicate content.

The myth of the “Find and delete duplicate files” option in OneDrive

Many online guides mention that OneDrive has a web interface with option called “Find and delete duplicate files”, accessible from Settings > Manage storage. Some texts even detail a supposed wizard that scans your files, lists duplicates, and lets you delete them in bulk.

The problem is that, currently, most users looking for that option They can't find it anywhere on the OneDrive websiteIt doesn't appear in the Settings gear icon, nor in Manage Storage, nor in the desktop application. Everything points to this being outdated information, from a very limited test that no longer exists, or simply an error copied between articles.

What OneDrive does natively is a Basic detection of duplicates by filename within the same folderIn other words, if you upload a file that already exists with the same name in the same location, it offers you the option to merge, replace, or keep both versions by renaming one. But this is far from a complete system for detecting duplicate files across the entire account.

In practice, most problematic duplicates in OneDrive have different names (added as “copy”, numbers or device name) and they're spread across several folders. For these cases, OneDrive doesn't have an automatic cloud tool, and you'll have to resort to manual methods or specific software.

Duplicate OneDrive folders and icons in Explorer: Registry error

Duplicate OneDrive folders and icons in Explorer

One of the most common cases is that, when you open File Explorer, you see two OneDrive entries in the navigation panelMany people think they are two different folders and that they are wasting space twice, but what is really happening is that Windows is showing two shortcuts to the same service.

Exclusive content - Click Here  How to master creating collaborative tables, lists, and tasks in Microsoft Loop

Some Microsoft support threads explain that this is due to duplicate keys in the Windows Registrywhich cause a double listing (not an actual duplication of files). There are two different approaches that several Microsoft moderators recommend for cleaning up these entries.

The first step involves modifying a specific key that controls OneDrive's visibility in Explorer. You need to open the Run dialog box with Win + R, type regedit and press Enter To launch the Registry Editor, then navigate to the following path:
HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}

Within that key you will find a value (usually called System.IsPinnedToNameSpaceTree or similar). If you change its value to 0 and accept, after restarting the PC That instance of OneDrive will no longer be displayed. in the Explorer. It's a way to hide the extra entry when a visual duplicate has been generated.

The second method, also described by support specialists, is based on navigating the registry to the following path:
Equipo\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace

In this key you'll see multiple subfolders identified by GUID. Each one has a descriptive name in the right-hand panel. The trick is in... Look for subkeys that show “OneDrive” as their nameIf you find two with that value, you can right-click on one of them and delete it. This way, one of the entries disappears from the Explorer, leaving only one.

It is essential to remember that Modifying the registry without knowing what you're doing can corrupt WindowsBefore deleting or modifying any registry key, it's advisable to back up the registry following Microsoft's official instructions. This way, if something goes wrong, you can restore it and return the system to its previous state.

Duplicating files when changing computers or copying folders

Another very common scenario is that of users who have just gotten a new computer, copy their data from the old one and, after configuring OneDrive, find themselves with piles of duplicate files with suffixes like "- copy" or with the team nameThis is usually a consequence of how the migration has been carried out.

For example, if you manually copy folders from OneDrive (or from an old copy) to the new OneDrive folder on the newly set-up laptop, while synchronization is active, the client may interpret that they are different files that you must protectInstead of overwriting what's already in the cloud, it creates additional copies to avoid conflicts and potential data loss.

To minimize this problem, it is recommended that, once you have OneDrive set up on the new computer, Do not manually copy files into the OneDrive folder while syncing is in progress.Ideally, you should let the client download everything from the cloud, and if you need to move something, pause the synchronization first.

A good strategy, if you still have the old computer, is to check that the original files are still there or on the OneDrive website. This way you can compare which copies are valid and which are unnecessary duplicates created when transitioning to the new computer.

If duplicates have already been generated, it's time for the less pleasant part: reviewing them and deciding what to keep and what to delete, either manually or with the help of a specialized duplicate detection utility.

Why OneDrive creates duplicate files: most common causes

Problems with duplicate files in OneDrive

There are several reasons why OneDrive might become filled with duplicate files. Understanding where they come from helps to prevent it from happening again and clean more safely.

Synchronization and simultaneous editing conflicts

In shared environments or when working on the same file from multiple devices, OneDrive may detect that there are two different versions of the same document that don't match. Instead of choosing one at random and risking losing changes, create two copies: an original and another with the computer or user name at the end.

This way, when multiple people are editing at the same time or your computer was offline and then resyncs, OneDrive opts for Keep both versions so you can decide What to do. This is positive from a security point of view, but it creates the feeling of "folders full of duplicates".

Backup from multiple devices to the same account

If you have two or more PCs backing up the same folders (for example, Desktop, Documents, or Pictures) to a single OneDrive account, it's easy to end up with two files with the same name from different computersTo differentiate them, OneDrive usually adds a number at the end of the file name or the machine's own name.

When sorting by name in OneDrive (both on the web and in Explorer), you'll often see groups like file.docx, file (1).docx, file – LAPTOP-COMPUTER.docx. Many of these contain exactly the same data and can be safely deleted once their equivalence has been verified.

Exclusive content - Click Here  Kling AI Videos: A Complete Guide to the Kling Ecosystem for Video, Audio, and Images

Credential and synchronization client issues

In some cases, the origin of the duplicates is in Credential errors in the OneDrive sync clientIf the access token or session becomes corrupted, the client may stop correctly recognizing what is already synchronized and generate redundant copies.

Microsoft community moderators have pointed to official articles explaining that, to resolve these types of problems, it is advisable to Close the OneDrive client, clear the related credentials, and restart the client. to force a clean synchronization. This operation can stabilize the files and prevent duplicate content from being created from that point forward.

Limitations of OneDrive duplicate detection

As we mentioned, OneDrive only prevents very basic duplicates: same name in the same folderAs soon as you change something in the name, move the file to another path, or upload it from another device under slightly different conditions, the system stops treating it as a duplicate and stores it without question.

Therefore, if you drag the same collection of photos multiple times to different subfolders, or if you back them up from different computers, you will end up with folders full of images and documents that are identical in content but not in nameThe platform, by itself, does not have a magic button to locate and group them.

How to automatically locate and delete duplicate files

Duplicate folder problems in OneDrive

When the volume of data is large, manually cleaning OneDrive can become an endless task. In these cases, many users resort to... third-party tools specializing in finding duplicate files both on the hard drive and in folders synchronized with the cloud.

One of the programs frequently cited for this purpose is Cisdem Duplicate Finder. This type of software is designed to analyze the actual content of the files (not just the name or size) and detect exact duplicates in different formats: photos, videos, documents, music, etc.

In the case of OneDrive, the recommended procedure first involves making sure that Ensure the OneDrive folders you want to review are synced locally.On Windows, you can right-click on the OneDrive folder or specific subfolders and choose the "Always keep on this device" option to have the client download the files.

Once the data is physically on your computer (you'll see this when the green checkmark icon appears in Explorer), you can Drag the main OneDrive folder or the folders you are interested in to the duplicate detection programThe software will launch a scan, compare the files, and display groups of identical or very similar items.

These tools typically allow Preview each duplicate, apply automatic selection rules (for example, always keeping the most recent version or the one in a specific location) and then bulk delete the remaining files. When you delete copies from the synced folder, OneDrive detects the change and replicates it in the cloud, freeing up space on both sides.

There are also versions of this type of program for Mac, which work similarly: you install the OneDrive app, sync the desired folders with your Mac, open the duplicate finder, and scan your local OneDrive folder. After reviewing and confirming, the deleted files also disappear from the cloud when they sync.

How to handle duplicates manually from the web and app

How to handle duplicates manually from the web and app

If your OneDrive account isn't particularly busy or you'd rather not install additional programs, you can use manual methods for locating duplicates, both from the OneDrive website and using File Explorer in Windows.

Using the OneDrive website to identify duplicates

By accessing https://onedrive.live.com With your Microsoft account, you'll see the "My Files" section with all your folders and documents. To easily find duplicates, it's very useful to take advantage of the sorting and viewing options offered by the web interface.

For example, you can enter a specific folder and change the view to List or Grid whichever is more convenient for you. Then, in the sort menu, select "File Size" in ascending or descending order. Exact duplicates often share the same file type and size, so sorting by size makes it easier. detect suspiciously identical sets of files.

In the case of photos, you can right-click on each image and use the option to Preview to confirm they are indeed the sameFor documents, OneDrive allows you to open them in Word Online, PowerPoint Online, etc., and verify that the content matches.

Exclusive content - Click Here  File Explorer stops responding: causes and solutions

An additional trick is to use the built-in search engine by typing words like "copy" or the name of one of your other devicesOneDrive will display files with that text in their name, which are often copies generated by synchronization conflicts. From there, you can review them and mark any redundant files for deletion.

To remove the duplicates you've already identified, you just need to Check the box next to the unwanted files and press the Delete button.They will go to the OneDrive trash, from where you can recover them if you made a mistake, or empty it later to permanently free up space.

Using File Explorer with the OneDrive app

If you prefer to work from Windows, the built-in OneDrive app lets you manage your files as if they were local folders. The first thing to do is check that You are logged into your account and synchronization is activeYou'll see the OneDrive icon in the system tray.

From that icon's menu you can access Settings and make sure that Files on demand (or Files on Demand) is enabledThis allows you to have all your files visible in Explorer without taking up space until you need them. To check for duplicates, you might want to ask OneDrive to download certain entire folders.

In File Explorer, navigate to your local OneDrive folder. You can use the computer option to sort by name or by sizeSorting by name will show you files with suffixes like "(1)", "- copy", or a computer name; sorting by size will make it easier to find exact duplicates even if they have different names.

When you find copies that you're sure you don't need, right-click and choose Delete. The file will go to the Windows Recycle Bin and will also be marked for deletion in OneDriveAfter the changes are synchronized, it will disappear from the cloud.

If you later decide you don't want all your files taking up local space, you can right-click on the main OneDrive folder or any subfolder and select "Free up space." This will keep your files in the cloud and only download what you need again.

Other specific situations: Office, product keys, and OneDrive

In the context of Office 2021 and Microsoft 365, some users have encountered confusion regarding whether OneDrive was integrated and if that could create duplicate folders or two separate installationsOffice 2021 as a perpetual product generally does not include the OneDrive client as part of the Microsoft 365 Apps license, even though the OneDrive client is included by default in Windows.

In some corporate settings, Office accounts and licenses have been mixed up, raising doubts about whether they existed two local OneDrives syncing the same thingThe typical recommendation from Microsoft technicians is to first verify that all local data is synchronized with the cloud, and then... temporarily unlink your OneDrive account to check if any of the supposedly duplicate folders disappear.

In parallel, there are cases where using the script has been suggested. ospp.vbs from the command prompt with administrator privileges to Check and retrieve Office 2021 product keys that did not correspond to the user's actual license. Although this affects Office and not OneDrive directly, it can help avoid mixing environments (for example, Office 2021 along with Microsoft 365 Apps) that end up causing confusion in the overall setup, including integration with OneDrive.

The use of commands such as cscript.exe "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" /dstatus and subsequently, ... /unpkey:XXXXX (replacing XXXXX with the last five characters of the key) is reserved for advanced users or administratorsAnd it's always advisable to follow the official documentation before touching Office licenses.

Considering all of the above, it is clear that Duplicate folders and files in OneDrive can be due to simple visual glitches, synchronization conflicts, backups from multiple computers, credential problems, or even a poor migration between computers.Before deleting anything, it's crucial to distinguish between duplicate icons in File Explorer (which can be fixed via the registry), document versions with significant changes, and identical copies simply taking up space. By combining manual sorting and searching methods on the OneDrive website and app, along with specialized tools for larger volumes, you can clean up your account without losing important information and with the peace of mind that your cloud storage is under control.