Uninstall OneDrive from Windows completely: what is removed
Short answer
UpdatedThis closes OneDrive, runs its own uninstaller and removes its leftover scheduled tasks and startup entries. Your files in the OneDrive folder stay on the disk, and files stored only in the cloud stay in the cloud. It runs the commands listed below.
Remove-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\OneDrive' -Name 'DisableFileSyncNGSC' -ErrorAction SilentlyContinue; Remove-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\OneDrive' -Name 'PreventNetworkTrafficPreUserSignIn' -ErrorAction SilentlyContinue; exit 0Remove-Item 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{018D5C66-4533-4307-9B53-224DE2ED1FE6}' -Recurse -Force -ErrorAction SilentlyContinue; Remove-Item 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{018D5C66-4533-4307-9B53-224DE2ED1FE6}' -Recurse -Force -ErrorAction SilentlyContinue; exit 0
What it does
This closes OneDrive, runs its own uninstaller and removes its leftover scheduled tasks and startup entries. Your files in the OneDrive folder stay on the disk, and files stored only in the cloud stay in the cloud.
In the app the switch is called "Remove OneDrive (Consumer)", described there as: Uninstalls bundled OneDrive client (distinct from policy block at ID 1013).
When it helps, and when it hurts
When it helps
- Removing the sync client, its startup entry and its File Explorer integration for good.
When it hurts
- Folder backup of Desktop, Documents and Pictures stops. Make sure the files you need are on the PC first.
- It is one-way: you download OneDrive again from Microsoft to get it back.
What it writes
Exactly what the switch changes, read from the app's source. Switching it off is what the app writes when you turn the tweak off again.
Remove-Item 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{018D5C66-4533-4307-9B53-224DE2ED1FE6}' -Recurse -Force -ErrorAction SilentlyContinue; Remove-Item 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{018D5C66-4533-4307-9B53-224DE2ED1FE6}' -Recurse -Force -ErrorAction SilentlyContinue; exit 0Remove-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\OneDrive' -Name 'DisableFileSyncNGSC' -ErrorAction SilentlyContinue; Remove-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\OneDrive' -Name 'PreventNetworkTrafficPreUserSignIn' -ErrorAction SilentlyContinue; exit 0From the app's source (tweaks_debloat_apps.hpp), app 2.0.0, checked .
How to undo it
In the app: One-way
Switching it off tries to reinstall OneDrive, which needs winget.
This tweak is one-way in the app: switching it off does not put things back. Switching it off tries to reinstall OneDrive, which needs winget.
Changing several settings at once? The app's Make a restore point button, on every plan, makes a Windows restore point before you start.
Verdict
Fine if you do not use OneDrive. If you only want it quiet during games, pause syncing or use the policy tweak instead.
Questions
- What does the "Remove OneDrive (Consumer)" tweak change in Windows?
- It runs the commands listed below.
- Is "Remove OneDrive (Consumer)" safe to switch on?
- Fine if you do not use OneDrive. If you only want it quiet during games, pause syncing or use the policy tweak instead. The main cost: Folder backup of Desktop, Documents and Pictures stops. Make sure the files you need are on the PC first.
- How do I undo it?
- In the app this one is one-way. Switching it off tries to reinstall OneDrive, which needs winget.
- Is "Remove OneDrive (Consumer)" free in Frozen Tweaks?
- It is part of Frozen Pro and Elite. You can also make the change by hand with the values on this page.
In the app
- Switch
- Remove OneDrive (Consumer)
- Category
- Debloat
- Plan
- Pro
- Undo
- One-way
Related guides
- Windows 11 Gaming Optimization: What Still Works in 2026An honest audit of Windows 11 gaming tweaks: which settings still measurably help in 2026, which are placebo, and which quietly cost you security.8 min read
- Low-End PC Gaming Optimization: Getting Playable Frame RatesWhat actually works on a weak PC, in order, including the one upgrade that beats every software tweak combined, and honest limits on what tuning can do.7 min read
More tweak explainers
- Feedback promptsWindows asks now and then how you like a feature. What the tweak changes, when it helps, when it hurts and how to undo it.2 min read
- Web search in StartWhen you type in Start, Windows sends the text to Bing and mixes web results into the list. What it changes, when it hurts, and how to undo it.2 min read
- Search highlightsSearch highlights are the daily illustrations and trending items in the search box and search panel. What it changes, when it hurts, and how to undo it.2 min read
In the app
- Category
- Debloat
- Plan
- Pro
- Undo
- One-way
Frozen Tweaks
Free for Windows 10 and 11
58 tweaks free, each with an undo switch. Never edits game files.
v2.0.0 · 6.4 MB · Windows 10 and 11, 64-bit · free account, no payment details
Or type frozentweaks.com on your PC.

The free Windows app for competitive games.
58 tweaks free, each with an undo switch. Never edits game files.
v2.0.0 · 6.4 MB · Windows 10 and 11, 64-bit · free account, no payment details
Frozen Tweaks runs on Windows. Send the link to your PC and download it there.
Or type frozentweaks.com on your PC.
