To completely remove OneDrive from Windows, you unlink your account, uninstall the OneDrive app, and then clean up leftover files and registry entries. This stops the sync client from running, removes the folder from File Explorer, and prevents OneDrive from starting with Windows. Before you begin, make sure you have a local copy of any files you want to keep, because unlinking and uninstalling can leave cloud-only files inaccessible until you sign in again. You will need administrator rights on the PC and a few minutes to work through the steps.
What You'll Need
- A Windows 10 or Windows 11 PC with administrator access.
- A backup of any important files currently stored only in OneDrive (copy them to an external drive or another folder first).
- Your Microsoft account password if you need to sign in to confirm unlinking.
- Optional: a system restore point, in case you want to undo registry changes later.
Step-by-Step
- Back up your files. Open File Explorer and navigate to your OneDrive folder. Copy any files you need to keep to a local folder outside OneDrive (for example, C:\Users\YourName\Documents\Backup). Files marked with a cloud icon are online-only; right-click them and choose "Always keep on this device" to download them before you proceed.
- Unlink your OneDrive account. Click the OneDrive cloud icon in the notification area (bottom-right of the taskbar). Select the gear icon, then Settings, then the Account tab. Click "Unlink this PC" and confirm. This stops syncing but does not delete your files from the cloud.
- Close OneDrive completely. Right-click the OneDrive icon in the notification area and choose "Quit OneDrive." If the icon is not visible, open Task Manager (Ctrl+Shift+Esc), find "Microsoft OneDrive" in the list, and click "End task."
- Uninstall the OneDrive app. Open Settings > Apps > Installed apps (Windows 11) or Settings > Apps > Apps & features (Windows 10). Search for "OneDrive," click the three-dot menu or the app entry, and choose Uninstall. Follow the prompts. On Windows 11, you can also use Control Panel > Programs > Uninstall a program.
- Remove the OneDrive folder from File Explorer. If a OneDrive entry still appears in the left pane, right-click it and choose "Unpin from Quick access" or delete the folder shortcut. To remove the actual folder, open File Explorer, go to C:\Users\YourName, right-click the OneDrive folder, and delete it. If Windows says the folder is in use, restart the PC and try again.
- Disable OneDrive startup. Open Task Manager, go to the Startup apps tab, find OneDrive, and set it to Disabled. This prevents it from launching automatically if any component remains.
- Remove leftover registry entries (optional, for advanced users). Press Win+R, type
regedit, and press Enter. Navigate toHKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}and delete the key if it exists. Also checkHKEY_CURRENT_USER\Software\Microsoft\OneDriveand delete that key. Close Registry Editor and restart the PC. Create a restore point first if you are unsure. - Verify removal. Restart your PC. Check that the OneDrive icon no longer appears in the notification area, that the folder is gone from File Explorer, and that OneDrive is not listed in Settings > Apps. Open Task Manager and confirm no OneDrive process is running.
Common Mistakes
- Uninstalling before unlinking. If you uninstall the app while still signed in, the folder may remain locked or files may be left in an inconsistent state. Always unlink first.
- Deleting the OneDrive folder without backing up. Files that are online-only will be removed from your PC and will only be available again after signing in to OneDrive on the web or another device. Copy them locally first.
- Assuming uninstalling deletes cloud data. Uninstalling the app does not delete anything from your Microsoft account. Your files remain in the cloud until you delete them there.
- Editing the registry without a backup. Registry changes are powerful. Export the key or create a restore point before deleting anything.
- Forgetting to disable startup. Some Windows builds re-enable OneDrive after updates. Check Startup apps again after major updates.
Tips
- Use the built-in "Free up space" option in OneDrive settings before unlinking to avoid leaving large online-only files that become inaccessible.
- If you only want to stop syncing temporarily, unlink the PC instead of uninstalling. You can sign in again later.
- After removal, check that your default save locations in Office apps (Word, Excel) are not still pointing to the old OneDrive folder. Change them to a local folder.
- On Windows 11, some editions include OneDrive as a system component. If the Uninstall button is greyed out, use Settings > Apps > Optional features to see if OneDrive is listed there, or use the PowerShell command
Get-AppxPackage *OneDrive* | Remove-AppxPackagein an administrator window. - Keep a copy of your backup until you have confirmed that all files are accessible and nothing important is missing.
Troubleshooting
- OneDrive will not uninstall. Restart the PC, then try again. If it still fails, use the Microsoft OneDrive uninstaller tool or run the PowerShell command above. Make sure you are signed in as an administrator.
- The OneDrive folder keeps reappearing. This can happen if a scheduled task or startup entry remains. Open Task Scheduler and disable any OneDrive-related tasks, and recheck Startup apps.
- Files are missing after removal. Sign in to OneDrive on the web (onedrive.live.com) to confirm your files are still in the cloud. Download them and save them to a local folder.
- File Explorer still shows OneDrive in the navigation pane. Right-click the entry and choose "Unpin from Quick access." If it persists, restart File Explorer from Task Manager.
- Registry key cannot be deleted. You may need to take ownership of the key. Right-click the key, choose Permissions, and grant your user full control. If unsure, skip this step; the app is already removed.
Frequently Asked Questions
Does uninstalling OneDrive delete my files from the cloud?
No. Uninstalling the app only removes the local client. Your files remain in your Microsoft account until you delete them through OneDrive on the web or another device.
Can I reinstall OneDrive later?
Yes. Download the installer from Microsoft's website or reinstall it through the Microsoft Store. Sign in with your account to resume syncing.
Will removing OneDrive affect other Microsoft apps?
It may change default save locations in Office apps. After removal, check that Word, Excel, and PowerPoint save to a local folder rather than the old OneDrive path.
Is it safe to delete the OneDrive registry keys?
Deleting the keys listed in this guide is generally safe for removing OneDrive, but registry editing carries risk. Create a restore point or export the keys first.
Why does OneDrive still appear in Settings after uninstalling?
Some Windows builds list OneDrive as a system component even after removal. If the entry remains but the app is not running and the folder is gone, the removal is effectively complete.
Do I need to remove OneDrive from every user account on the PC?
Uninstalling the app removes it for all users. However, each user's OneDrive folder and settings are separate. Repeat the unlinking and folder cleanup for each account if needed.