Uninstall OneDrive from Windows completely: what is removed

DebloatProUndo: One-wayUpdated View as Markdown

Short answer

Updated

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. It runs the commands listed below.

In the app
Remove OneDrive (Consumer)PRO
Command

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 the switch writes. Your current value may differ.

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.

With the tweak · POWERSHELL
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 0
Switching it off · POWERSHELL
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 0

From 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

See it in the catalog

More tweak explainers

Written by

Founder of Frozen Tweaks, based in Hamburg, Germany. Publishes settings guides for competitive games on his YouTube channel, Frost LIVE.

In the app

Category
Debloat
Plan
Pro
Undo
One-way

See it in the catalog

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.

See all 177 tweaks

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.