↓Skip to main content
Alemasone

How to Uninstall OneDrive from Windows 11 Without Losing Files

Learn the correct steps: move files locally, stop folder backups, unlink your account, and then safely remove the application.

6 min read Updated on
OneDrive icon in the Windows 11 taskbar with the settings panel open
On this page
Uninstalling OneDrive takes only a minute. Doing it without ending up with an empty Desktop and half your documents missing requires three steps beforehand that almost no one does. There are two culprits: files that are online-only, which act as placeholders on your disk rather than actual files, and folder backup, which moves your Desktop, Documents, and Pictures into OneDrive without clearly telling you.

The correct order is always this: download everything to your disk, stop the folder backup, unlink your account, and only at the very end uninstall the application. If you signed into Windows 11 with a Microsoft account, it is very likely that folder backup is active even if you don’t remember it: the initial setup suggests it, and often turns it on automatically.

Watch out for files with an empty cloud icon. These are files that exist only online: they take up only a few bytes on your disk and serve only to show you that they exist. If you uninstall OneDrive without having downloaded them, they will disappear from your computer. They remain online, but you won’t find them on your local disk anymore.

Desktop icons with OneDrive status symbols: a green checkmark for files available on the PC, and a cloud for those that are online-only
An empty cloud indicates a file that is not physically on your disk

First: move everything to your disk #

  1. Open File Explorer and check your free space. If you have 200 GB on OneDrive and only 50 GB of free space on your disk, the next step won’t work: first, exclude folders you don’t need on your PC from syncing, or free up some space.

  2. Right-click the OneDrive folder in the left sidebar and choose Always keep on this device.

  3. Wait. The download can take hours; the icon in the taskbar will show you the progress.

  4. Finally, check the status column: no empty clouds should remain. A solid green checkmark indicates files that are actually stored on your disk.

If the files are important, make a backup to an external drive or a USB stick before moving forward. It’s a small effort that provides total peace of mind.

Next: stop folder backup #

This is the decisive step, and it’s what explains the famous “empty Desktop” issue.

If folder backup is active, your Desktop, Documents, and Pictures are not where you think they are: they are located inside the OneDrive folder (for example C:\Users\TuoNome\OneDrive\Documenti), while your original user folders appear empty.

To check and disable it:

  1. Click the OneDrive icon in the taskbar, then click the gear icon and select Settings.
  2. Open the Sync and backup section and then select Manage backup.
  3. If Desktop, Documents, or Pictures (or even Music and Video) are active, stop the backup for each one.
OneDrive folder backup window showing toggles for Documents, Pictures, Desktop, Music, and Video (English interface)
This shows which folders have been moved into OneDrive

Now for the manual part: when you stop the backup, your files remain inside the OneDrive folder and Windows creates new, empty folders in their place. You must therefore open your OneDrive folder, go into Desktop, Documents, and Pictures, and move the content back into the corresponding user folders.

Use cut and paste to move one folder at a time, rather than dragging and dropping. Dragging between two paths that Windows considers “special” can sometimes create a copy instead of moving the files, leaving you with two versions of the same file without knowing which one is the correct one.

If after uninstalling your Documents, Desktop, or Pictures folders still point to OneDrive (you can check this via Properties → Location for the folder), you can restore them to their proper place using PowerShell:

$k = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"
Set-ItemProperty $k Personal "$env:USERPROFILE\Documents"
Set-ItemProperty $k Desktop "$env:USERPROFILE\Desktop"
Set-ItemProperty $k "My Pictures" "$env:USERPROFILE\Pictures"

Then sign out and back into your account (or restart) so that Windows reads the new paths.

Unlinking your account #

For many, this is enough without uninstalling anything: the application remains but stops syncing, and your files stay on your disk exactly where you put them.

  1. OneDrive icon → gear icon → Settings.
  2. Account section.
  3. Select Unlink this PC and confirm.

The OneDrive folder remains on your disk with everything you had downloaded, and the files also remain online, accessible via the website using your account.

Uninstalling the application #

Once that is done, removing OneDrive is simple:

  1. Settings → Apps → Installed apps.
  2. Search for Microsoft OneDrive.
  3. Click the three-dot menu → Uninstall.

Alternatively, via PowerShell:

winget uninstall "Microsoft OneDrive"

On a company-managed computer, this option may be disabled; in that case, the decision rests with your administrator, not you.

After uninstallation, your online files are not deleted: you can find them by logging into your account through a web browser, and you can reinstall the application whenever you want.

If it reappears, or if you just want to hide it #

Prevent it from coming back. Major Windows updates sometimes reinstall it. To block it, open PowerShell as an administrator:

reg add "HKLM\Software\Policies\Microsoft\Windows\OneDrive" /v DisableFileSync /t REG_DWORD /d 1 /f

On Windows 11 Pro, you can achieve the same via the Group Policy Editor (gpedit.msc): Computer Configuration → Administrative Templates → Windows Components → OneDrive → Prevent the usage of OneDrive for file storage.

Remove it from the File Explorer sidebar. If after uninstalling the OneDrive entry remains in the sidebar, you can remove it by setting 0 to System.IsPinnedToNameSpaceTree in the HKEY_CURRENT_USER\Software\Classes\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6} registry key, and then restarting File Explorer. This is the same process used for entries like Creative Cloud or Dropbox.

Just get it out of your way. If you just don’t want to see it anymore without giving up on it forever: unlink the account, disable its startup (in Task Manager → Startup apps → Microsoft OneDrive → Disable), and leave the app installed. You’ll be back in thirty seconds, and it’s the least risky option.

And what about alternatives to OneDrive? #

Remember that files on a single drive are not a backup. If you turn off synchronization without putting something else in its place, a single disk failure is enough to lose everything.

There are three sensible alternatives: an external drive using Windows File History, another cloud service if the issue was Microsoft and not cloud storage itself, or a home NAS. The most solid combination remains one local copy plus one offsite.

FAQ #

If I uninstall OneDrive, will I lose my files? #

No, neither the ones already downloaded to your disk nor those online, which remain on the website. You only lose access on your PC to online-only files—those with the empty cloud icon: this is why the first step is to download everything.

Why is my Desktop empty after stopping the backup? #

Because the files remained in the Desktop folder inside OneDrive, and Windows created a new, empty one in your user profile. You need to move them manually from the first to the second; nothing has been lost.

Can I reinstall it if I change my mind? #

Yes, you can find it on the Microsoft website or in the Microsoft Store, and once you sign in with your account, all your files will be back. If you had enabled a block via the Registry or Group Policy, make sure to remove that first.

In most cases, unlinking is enough: the app stops doing anything but stays there in case you need it one day. Uninstalling makes sense if you want to ensure it doesn’t start up again or if you are lightening a slow PC.

Does deleting files from the OneDrive folder also delete them online? #

Yes, as long as the account is linked, because synchronization works in both directions. This is why you should unlink first and only then clean up your disk.

Read next