A Microsoft file hosting and synchronization service.
Dear @Fiona Davidson,
Thank you for reaching out to the Microsoft 365 Q&A forum. I completely understand your frustration. Since you have already tried a standard uninstall and the "hijacking" persists, we need to use more advanced methods to strip the OneDrive configuration from your system.
Here is the professional, technical path to fully removing OneDrive and reclaiming your local file structure:
Step 1: Advanced uninstallation
Sometimes a standard uninstall leaves the core setup package behind. You can force a deep uninstall using the setup package itself.
- Locate your OneDrive setup file (often found in the OneDrive folder or downloaded from the official homepage).
- Run the following command in a Command Prompt to ensure all components are removed:
OneDriveSetup.exe /uninstall
Step 2: Block OneDrive from Automatic Startup
If shortcuts remain, Windows may try to re-trigger the sync process. Navigate to the following locations on your computer and delete any files named "OneDrive.lnk":
-
%APPDATA%\Microsoft\Windows\Start Menu\Programs\Microsoft OneDrive.lnk -
%APPDATA%\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk -
%USERPROFILE%\Links\OneDrive.lnk
Step 3: Disable via Group Policy (Windows Pro/Enterprise)
If you are on a professional version of Windows, you can implement a hard block that prevents Windows from ever using OneDrive for storage:
- Press Win + R, type
gpedit.msc, and hit Enter. - Go to Computer Configuration > Administrative Templates > Windows Components > OneDrive.
- Double-click Prevent the usage of OneDrive for file storage and set it to Enabled.
- Reboot your system to fully apply these changes.
Step 4: For IT/Advanced Users: PowerShell Removal
If you are managing this from a leadership or admin perspective, you can use PowerShell to remove the hidden lists associated with the OneDrive site:
- Install Modules:
Install-Module SharePointPnPPowerShellOnlineandInstall-Module CredentialManager. - Run Cleanup: Use your personal site URL and run a script to delete associated ODB lists.
For further detailed troubleshooting, you may refer to the official Get started with the SharePoint Online Management Shell | Microsoft Learn
Remove-SPOSite (Microsoft.Online.SharePoint.PowerShell) | Microsoft Learn
Please note that as a forum moderator, I don’t have access to backend tools or internal systems to investigate further, and certain settings or configurations are managed exclusively by your organization’s administrators, so I’m unable to check or make changes on that side. That said, I truly hope these suggestions help you move forward.
Please let me know if you have any further questions or if the problem persists after trying these solutions. Thank you for your patience and cooperation.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.