Forum Discussion
ElijahWood
Apr 15, 2026Iron Contributor
How to Completely Uninstall OneDrive from Windows 11 and Remove All Traces?
Hello everyone, Recently got a new Windows 11 laptop but very annoyed by the OneDrive app. Honestly, I've been trying to uninstall OneDrive completely from my computer. I don't just want to remove t...
Zaidpin
Apr 15, 2026Tin Contributor
How to uninstall onedrive in Windows 11? OneDrive stores files in two places: your local computer and the Microsoft cloud. Before you begin, please ensure any important files you want to keep are safely stored outside of the OneDrive folder (e.g., on your Desktop or in your Documents folder) or verify they are still accessible on the OneDrive website.
If you want a more automated and complete removal that includes leftover files and registry entries, you can create a simple batch script. This method is very effective and has been shared by users in technical forums for Windows 10 and 11.
Here's how to uninstall onedrive in Windows 11:
1. Open Notepad (or any text editor).
2. Copy and paste the lines of code into the Notepad window.
3. Click File > Save As.
4. In the "Save as type" dropdown, select All Files (.).
5. Name the file UninstallOneDrive.bat (the .bat extension is important).
6. Save the file to your desktop or another easy-to-find location.
7. Right-click on the UninstallOneDrive.bat file and select Run as administrator.
8. A command window will open and run the script automatically, removing OneDrive and cleaning up its traces.
After the script finishes, restart your computer to complete the process.
RTan3591
Apr 19, 2026Brass Contributor
WHERE are your "lines of code"?