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.

On this page
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.

First: move everything to your disk #
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.
Right-click the OneDrive folder in the left sidebar and choose Always keep on this device.
Wait. The download can take hours; the icon in the taskbar will show you the progress.
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:
- Click the OneDrive icon in the taskbar, then click the gear icon and select Settings.
- Open the Sync and backup section and then select Manage backup.
- If Desktop, Documents, or Pictures (or even Music and Video) are active, stop the backup for each one.

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.
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.
- OneDrive icon → gear icon → Settings.
- Account section.
- 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:
- Settings → Apps → Installed apps.
- Search for Microsoft OneDrive.
- 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.
Is it better to uninstall or just unlink? #
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.

