cover how to remove OneDrive from windows 11 and restore local folders
4–5 minutes

Uninstall OneDrive on Windows 11: Definitive Guide

Windows 11integrationMicrosoft OneDrivedeep in the operating system. By default, the service redirects your personal folders (Documents, Desktops and Images) directly to the cloud. Although useful for backups, many users preferuninstall OneDriveto maintain local file control, avoiding synchronization problems, unwanted doubles and free cloud space exhaustion.

In thiscomplete technical guide, you will discover step by step ascompletely remove OneDrive from Windows 11, restore the original paths of your system folders and block automatic reinstallation of Windows Update.

Preliminary operations: Save Files from Cloud

Attention:Before proceeding with uninstalling OneDrive, check the status of your files. If you have enabled the “File on request” option, some data may reside exclusively on Microsoft servers and not on your local PC.

  1. Open the folderOneDrivethrough the Windows 11 File Explorer.
  2. Check that important files present the icon of thegreen light(which indicates the saved files locally) and not the cloud-shaped icon.
  3. If you notice the cloud icon, right click the files or folders and select“Always keep on this device”to download them on the disk.
  4. Make abackup quotedocuments, Desktops and Images on an external hard drive or USB stick.

Step 1: How to Disable OneDrive Processes

For safe removal, you must first finish all background activities related to the Microsoft app.

  1. Right-click the cloud icon in the notification area (low right) and select the option toclose OneDrive.
  2. Press the combinationCtrl + Shift + Escto startActivity Management (Task Manager).
  3. Search the processOneDrive. ex, right click and chooseEnd of activity.
  4. Go to the tabStartup app, find Microsoft OneDrive, right click and selectDisabledto prevent the software from switching on the PC.

Step 2: Uninstall OneDrive Definitively

The fastest and cleanest method fordelete OneDrive clientis to use the PowerShell interface with administrator rights.

  1. Click the Start button, typePowerShell, right click the result and selectRun as administrator.
  2. Paste the following command to use the Windows package manager (Winget) and press Enter:

PowerShell terminal:

winget uninstall "Microsoft OneDrive"

Alternatively, you can force uninstallation by recalling the native operating system executable:

PowerShell terminal:

& "$env:SystemRoot\System32\OneDriveSetup.exe" /uninstall

Step 3: Restore Local Folders on Windows 11

After removing the software, the operating system will still look for your personal directories in old paths (e.g.C:\Utenti\TuoNome\OneDrive\Documenti). It is fundamentalrestore standard local routesoperating on the registry.

In the same PowerShell window as administrator, run these three commands in sequence:

PowerShell terminal:

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

Done this, manually move your documents and photos from the old residual OneDrive folder to the newwindows Local Foldersjust restored.

Step 4: Prevent Reinstallation with Windows Update

Large updates of Windows Update tend to reinstall native Microsoft services. To permanently block this behavior, we will apply a rule in the registry.

Run this script in PowerShell (always as administrator):

PowerShell terminal:

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

Note for advanced users: If you useWindows 11 Pro or Enterprise, you can get the same result through the Group Policy Editor (gpedit.msc). Browse: Computer Configuration > Administrative Templates > Windows Components > OneDrive and enable option to prevent use of OneDrive for file storage.

Step 5: Remove OneDrive from File Explorer

To delete the persistent OneDrive icon from the left side barExplore File, use these commands to delete associated CLSID keys:

PowerShell terminal:

Remove-Item "Registry::HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item "Registry::HKEY_CLASSES_ROOT\WOW6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" -Recurse -Force -ErrorAction SilentlyContinue

Finally, restart the Windows Explorer process to make visual changes effective without having to restart the PC:

PowerShell terminal:

Stop-Process -Name explorer -Force

At the end of these steps, your system will becompletely free from OneDrive. Your personal folders (Desktop, Documents, Images) will go back to work as traditional local directories, returning maximum privacy and total physical control over your data.

FAQ: Frequently Asked Questions about OneDrive Removal

If I uninstall OneDrive from Windows 11, will I lose my files?

No, deleting the client from the PC does not delete the files stored online on Microsoft servers. However, the “Files on request” that were not stored locally on the disk will no longer be accessible offline. Always make sure you download them by following the preliminary steps described in this guide.

Can I reinstall OneDrive in the future if I change my mind?

Absolutely. You can download the OneDrive app at any time from Microsoft Store or Microsoft’s official website. Just remember to remove the block from the registry or the Group Policies you set during the “Fase 4” to allow the client to sync again correctly.

Can this procedure slow down or damage the operating system?

No, uninstallation is completely secure and is managed by the normal Windows packaging processes. In fact, by removing an always active service in the background that constantly monitors the disk, you may notice a slight improvement in the overall performance of your computer.

EnglishenEnglishEnglish