Uninstall OneDrive on Windows 11: Definitive Guide
Find out how to completely uninstall OneDrive from Windows 11, restore local folders and avoid automatic reinstallation with this guide.

Windows 11 integrates Microsoft OneDrive deep into 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 prefer to uninstall OneDrive to maintain local file control, avoiding synchronization problems, unwanted doubles and free cloud space exhaustion.
In this complete technical guide, you will discover step by step how to completely remove OneDrive from Windows 11, restore the original paths of your system folders and block the automatic reinstallation of Windows Update.
Preliminary operations: Save Files from Cloud #
Attention: Before proceeding with the uninstallation of 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.
- Open the OneDrive folder via the Windows 11 File Explorer.
- Check that important files present the green check icon (which indicates the saved files locally) and not the cloud-shaped icon.
- 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.
- Make a preventive backup of Documents, Desktops and Images folders on an external hard drive or USB key.
Step 1: How to Disable OneDrive Processes #
For safe removal, you must first finish all background activities related to the Microsoft app.
- Right-click the cloud icon in the notification area (low right) and select the option to close OneDrive.
- Press the
Ctrl + Shift + Esccombination to start Task Management (Task Manager). - Search the OneDrive.exe process, right click and choose Finish task.
- Go to the Startup App tab, find Microsoft OneDrive, right click and select Disable to prevent the software from switching on your PC.
Step 2: Uninstall OneDrive Definitively #
The fastest and cleanest method to delete the OneDrive client is to use the PowerShell interface with administrator rights.
- Click the Start button, type
PowerShell, right click the result and select Run as administrator. - 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 essential to restore standard local routes by operating 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 new local Windows folders just 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 use Windows 11 Pro or Enterprise, you can achieve the same result through the Group Policy Editor (gpedit.msc). Browse: Computer configuration > Administrative models > Windows Components > OneDrive and enable the option to prevent the use of OneDrive for file storage.
Step 5: Remove OneDrive from File Explorer #
To delete the persistent OneDrive icon from the left sidebar of File Explorer, 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 be completely free from OneDrive. Your personal folders (Desktop, Documents, Images) will be back to work as traditional local directories, returning maximum privacy and total physical control over your data.
FAQ: Frequently Asked Questions about Removal of OneDrive #
If I uninstall OneDrive from Windows 11, will I lose my files? #
No, deleting the client from the PC does not delete 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 the Microsoft Store or from the Microsoft official website. Just remember to remove the block from the registry or Group Policy you set up 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 package 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.

