Uninstalling OneDrive and deleting the folder are good first steps, but Windows 11 might still try to access OneDrive if registry entries or settings haven't been cleared. Here's how to make Windows 11 forget OneDrive completely:
1. Unlink OneDrive (if you haven't already):
Right-click the OneDrive cloud icon in the notification area (usually near the clock).
Select "OneDrive Help and Settings" icon, then "Settings".
Go to the "Account" tab.
Click "Unlink this PC".
2. Clean Up Registry (This step requires caution, back up your registry before proceeding):
Open the Start menu and search for "regedit".
Important: Be careful when editing the registry, mistakes can cause system instability. It's recommended to create a backup of your registry before proceeding (https://support.microsoft.com/en-us/topic/how-to-back-up-and-restore-the-registry-in-windows-855140ad-e318-2a13-2829-d428a2ab0692).
Navigate to: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
Look for entries named "Personal" and "My Pictures" (might have OneDrive path).
Right-click each entry and select "Modify".
In the "Value data" field, enter the default location for these folders (e.g., C:\Users\%USERNAME%\Documents for Personal).
Click "OK" and repeat for other OneDrive related entries you find (if any).
3. Group Policy Editor (For Windows 11 Pro or Enterprise):
Search for "gpedit.msc" in the Start menu and open it.
Navigate to: Computer Configuration > Administrative Templates > Windows Components > OneDrive
You can disable OneDrive policies here (e.g., "Prevent the use of OneDrive for file storage").
After following these steps, restart your computer for changes to take effect. OneDrive should no longer be referenced by Windows 11.
Note: If you're unsure about any registry edits, it's best to seek help from a technician or skip this step.